public SceneExporter(GameObject[] gos, string targetFilePath) { pathHelper = new ExportPathHelper(targetFilePath); unitySceneRoot = new UnitySceneRoot(); foreach (var go in gos) { unitySceneRoot.Add(go); } }
UnitySceneRoot BuildUnitySceneRoot(GameObject[] gos) { var root = new UnitySceneRoot(); foreach (var go in gos) { root.Add(go); } return(root); }