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; }
private void Start() { UiPanel = NGUITools.FindInParents <UIPanel>(gameObject); UiPanel.AddUiSort(this); }