Esempio n. 1
0
 private void InitializeGroupHeaderVisibility()
 {
     foreach (InspectorItemRenderer renderer in renderers)
     {
         if (renderer.inspectorAttribute.displayHeader == false)
         {
             groups.SetGroupDisplayHeader(renderer.inspectorAttribute.group, renderer.inspectorAttribute.displayHeader);
         }
     }
 }
Esempio n. 2
0
        private void InitializeGroupProperties()
        {
            if (renderers == null)
            {
                Debug.LogError("InitializeRenderersList should be called before InitializeGroupProperties since group properties" +
                               " are described in renderers attributes");
            }

            foreach (InspectorItemRenderer renderer in renderers)
            {
                if (renderer.inspectorAttribute.displayHeader == false)
                {
                    groups.SetGroupDisplayHeader(renderer.inspectorAttribute.group, false);
                }

                if (renderer.inspectorAttribute.foldable == true)
                {
                    groups.SetGroupFoldable(renderer.inspectorAttribute.group, true);
                }
            }
        }