private static bool CreateSceneFromTemplate(string templateAssetPath, bool loadAdditively) { var sceneAsset = AssetDatabase.LoadAssetAtPath <SceneTemplateAsset>(templateAssetPath); if (sceneAsset == null) { return(false); } if (!sceneAsset.isValid) { UnityEngine.Debug.LogError("Cannot instantiate scene template: scene is null or deleted."); return(false); } return(SceneTemplateService.Instantiate(sceneAsset, loadAdditively, null, SceneTemplateAnalytics.SceneInstantiationType.NewSceneMenu) != null); }