mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-06-02 22:14:30 -05:00
fix hideFlags
This commit is contained in:
parent
e069983d1b
commit
c10022183f
|
|
@ -53,14 +53,17 @@ namespace VRM
|
||||||
manager.Initialize(prefab);
|
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
|
// 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;
|
foreach (var x in go.transform.Traverse())
|
||||||
go.hideFlags |= HideFlags.DontSaveInBuild;
|
{
|
||||||
|
x.gameObject.hideFlags = HideFlags.None
|
||||||
|
| HideFlags.DontSave
|
||||||
|
//| HideFlags.DontSaveInBuild
|
||||||
#if VRM_DEVELOP
|
#if VRM_DEVELOP
|
||||||
#else
|
#else
|
||||||
go.hideFlags |= HideFlags.HideAndDontSave;
|
| HideFlags.HideAndDontSave
|
||||||
; // you could also hide it from the hierarchy or inspector, but personally I like knowing everything that's there
|
|
||||||
#endif
|
#endif
|
||||||
//Debug.LogFormat("Create {0}", manager);
|
;
|
||||||
|
}
|
||||||
|
|
||||||
return manager;
|
return manager;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user