예제 #1
0
 public void ResortRenderers()
 {
     _renderers = this.GetComponentsInChildren <Renderer>(true);
     UiPanel    = NGUITools.FindInParents <UIPanel>(gameObject);
     UiPanel.AddUiSort(this);
     _panelMaterialCache           = E3D_Utils.GetOrAddComponent <UIPanelMaterialCache>(UiPanel.gameObject);
     _panelMaterialCache.hideFlags = HideFlags.HideAndDontSave;
 }
예제 #2
0
 private void Start()
 {
     UiPanel = NGUITools.FindInParents <UIPanel>(gameObject);
     UiPanel.AddUiSort(this);
 }