public IUIElement GetParentUIE() { if (thisParentUIAdaptor != null) { return(thisParentUIAdaptor.GetUIElement()); } return(null); }
IUIElement[] CreateUIEs() { List <IUIElement> resultList = new List <IUIElement>(); for (int i = 0; i < groupElementCount; i++) { // GameObject go = GameObject.Instantiate(uiElementPrefab, this.GetTransform()); GameObject go = GameObject.Instantiate(uiElementPrefab); go.transform.localScale = thisCanvasLocalScale; go.transform.SetParent(this.GetTransform()); IUIAdaptor adaptor = (IUIAdaptor)go.GetComponent(typeof(IUIAdaptor)); adaptor.SetIndex(i); adaptor.SetUpRecursively(); adaptor.SetUpReferenceRecursively(); IUIElement element = adaptor.GetUIElement(); resultList.Add(element); } return(resultList.ToArray()); }
public void GetReadyForUISystemActivation() { IProcessFactory processFactory = CreateProcessFactory( thisProcessManager ); IUIElementFactory uiElementFactory = new UIElementFactory(this); IUIAdaptorBaseInitializationData rootUIAdaptorBaseInitializationData = CreateRootUIEBaseConstData( processFactory, uiElementFactory ); thisRootUIAdaptor.GetReadyForActivation( rootUIAdaptorBaseInitializationData, recursively: true ); thisRootUIElement = thisRootUIAdaptor.GetUIElement(); thisPopUpManager.SetRootUIElement(thisRootUIElement); }