public AssetManager(App.IMixedRealityExtensionApp app, GameObject root = null) { App = app; cacheRoot = root ?? new GameObject("MRE Cache Root"); cacheRoot.SetActive(false); emptyTemplate = new GameObject("Empty"); emptyTemplate.transform.SetParent(cacheRoot.transform, false); }
public AssetManager(App.IMixedRealityExtensionApp app, Node root = null) { App = app; cacheRoot = root ?? new Node { Name = "MRE Cache Root" }; cacheRoot.SetProcess(false); if (cacheRoot != root) { app.SceneRoot.AddChild(cacheRoot); } emptyTemplate = new Spatial { Name = "Empty" }; cacheRoot.AddChild(emptyTemplate); }