public void SetParentUIE(IUIElement newParentUIE, bool worldPositionStays) { IUIAdaptor newParentUIA = newParentUIE.GetUIAdaptor(); Transform parentTransform = newParentUIA.GetTransform(); this.transform.SetParent(parentTransform, worldPositionStays); newParentUIA.UpdateUIAdaptorHiearchy(true); }
public void SetParentUIA(IUIAdaptor parentUIA, bool worldPositionStays) { this.transform.SetParent(parentUIA.GetTransform(), worldPositionStays); }