Пример #1
0
        internal HierarchyProperty CreateHierarchyProperty()
        {
            HierarchyProperty property = new HierarchyProperty(k_HierarchyType);

            property.alphaSorted      = IsUsingAlphaSort();
            property.showSceneHeaders = PrefabStageUtility.GetCurrentPrefabStage() == null;
            if (SceneHierarchyHooks.provideSubScenes != null)
            {
                property.SetSubScenes(SceneHierarchyHooks.provideSubScenes());
            }

            if (AreScenesValid(scenes))
            {
                property.SetCustomScenes(scenes);
            }
            return(property);
        }