Exemplo n.º 1
0
        public void RemoveFromPseudoScene(string scene, Transform transform, bool deleteSceneIfEmpty)
        {
            HierarchyRootPseudoScene pseudoScene = GetPseudoScene(scene, false);

            if (pseudoScene == null)
            {
                return;
            }

            pseudoScene.RemoveChild(transform);

            if (deleteSceneIfEmpty && pseudoScene.Children.Count == 0)
            {
                DeletePseudoScene(scene);
            }
        }
Exemplo n.º 2
0
        public void RemoveFromPseudoScene(string scene, IEnumerable <Transform> transforms, bool deleteSceneIfEmpty)
        {
            HierarchyRootPseudoScene pseudoScene = GetPseudoScene(scene, false);

            if (pseudoScene == null)
            {
                return;
            }

            foreach (Transform transform in transforms)
            {
                pseudoScene.RemoveChild(transform);
            }

            if (deleteSceneIfEmpty && pseudoScene.Children.Count == 0)
            {
                DeletePseudoScene(scene);
            }
        }