public void Run() { timeline = Object.FindObjectOfType <Timeline>(); scripts = Object.FindObjectsOfType <ScriptBase>(); // if (timeline) // { // scripts = new[] {timeline}; // // } //scripts = ScriptBase.GetAllScript(); if (scripts != null) { foreach (var scriptBase in scripts) { Debug.Log((scriptBase)); scriptBase.BeginExport(); } } config = Object.FindObjectOfType <SceneConfig>(); if (config == null) { Debug.LogError("没有找到SceneConfig场景配置对象"); return; } if (GetOutputFile() == false) { return; } var batchExportConfig = Object.FindObjectOfType <BatchExportConfig>(); if (batchExportConfig != null && batchExportConfig.ExportItems.Count > 0) { BatchExportScene(batchExportConfig); } else { SimpleExportScene(); } if (scripts != null) { foreach (var scriptBase in scripts) { scriptBase.EndExport(); } } Debug.Log("快速导出完成"); }
public TimeInformation(SceneConfig obj) { ObjectType = ObjectTypeTimeInformation; //------------------- duration = obj.duration; frameRate = obj.frameRate; }