From c10022183fb2d52625daff07d75d01a2af4b1e1d Mon Sep 17 00:00:00 2001 From: G21 Date: Tue, 10 Apr 2018 16:47:05 +0900 Subject: [PATCH] fix hideFlags --- Scripts/BlendShape/PreviewSceneManager.cs | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/Scripts/BlendShape/PreviewSceneManager.cs b/Scripts/BlendShape/PreviewSceneManager.cs index 800378658..684be8f79 100644 --- a/Scripts/BlendShape/PreviewSceneManager.cs +++ b/Scripts/BlendShape/PreviewSceneManager.cs @@ -53,14 +53,17 @@ namespace VRM manager.Initialize(prefab); // HideFlags are special editor-only settings that let you have *secret* GameObjects in a scene, or to tell Unity not to save that temporary GameObject as part of the scene - go.hideFlags |= HideFlags.DontSaveInEditor; - go.hideFlags |= HideFlags.DontSaveInBuild; + foreach (var x in go.transform.Traverse()) + { + x.gameObject.hideFlags = HideFlags.None + | HideFlags.DontSave + //| HideFlags.DontSaveInBuild #if VRM_DEVELOP #else - go.hideFlags |= HideFlags.HideAndDontSave; - ; // you could also hide it from the hierarchy or inspector, but personally I like knowing everything that's there + | HideFlags.HideAndDontSave #endif - //Debug.LogFormat("Create {0}", manager); + ; + } return manager; }