Exemplo n.º 1
0
 private void ShowAllComponentsInInspector()
 {
     Component[] v_components = GetComponents <Component>();
     foreach (Component v_component in v_components)
     {
         if (v_component != null && v_component != this && v_component != this.transform)
         {
             v_component.hideFlags &= ~HideFlags.HideInInspector;
             v_component.hideFlags &= ~HideFlags.NotEditable;
         }
     }
     foreach (Transform v_child in transform)
     {
         if (v_child != null)
         {
             KiltUtils.UnlockObject(v_child.gameObject);
         }
     }
 }