public override void RegisterAdditionalFilesToDeploy(Action <string, string> registerAdditionalFileToDeploy) { var sceneList = Context.GetComponentOrDefault <SceneList>(); var tempFile = System.IO.Path.Combine(WorkingDirectory, SceneSystem.k_SceneInfoFileName); ResourceCatalogBuildCode.WriteCatalogFile(sceneList, tempFile); registerAdditionalFileToDeploy(tempFile, System.IO.Path.Combine(StreamingAssetsDirectory, SceneSystem.k_SceneInfoFileName)); }
protected override void OnPrepareAdditionalAssetsBeforeBuild() { var sceneList = (SceneList)GetComponent(typeof(SceneList)); var tempFile = WorkingDirectory + "/SceneSystem.k_SceneInfoFileName"; ResourceCatalogBuildCode.WriteCatalogFile(sceneList, tempFile); AddFile(tempFile, $"{StreamingAssetsDirectory}/{SceneSystem.k_SceneInfoFileName}"); }
public override BuildStepResult RunBuildStep(BuildContext context) { m_TemporaryFileTracker = new TemporaryFileTracker(); var sceneList = GetRequiredComponent <SceneList>(context); ResourceCatalogBuildCode.WriteCatalogFile(sceneList, m_TemporaryFileTracker.TrackFile(SceneInfoPath)); return(Success()); }
public override void RegisterAdditionalFilesToDeploy(Action <string, string> registerAdditionalFileToDeploy) { SubSceneBuildCode.PrepareAdditionalFiles( Context.BuildConfigurationAssetGUID, EmbeddedScenes, BuildTarget, registerAdditionalFileToDeploy, StreamingAssetsDirectory, $"Library/SubsceneBundles"); var sceneList = Context.GetComponentOrDefault <SceneList>(); var tempFile = System.IO.Path.Combine(WorkingDirectory, SceneSystem.k_SceneInfoFileName); ResourceCatalogBuildCode.WriteCatalogFile(sceneList, tempFile); registerAdditionalFileToDeploy(tempFile, System.IO.Path.Combine(StreamingAssetsDirectory, SceneSystem.k_SceneInfoFileName)); }