Ejemplo n.º 1
0
        public override void Scene_Save(MsgObject message)
        {
            Studio.Studio.Instance.dicObjectCtrl.Values.ToList().ForEach(x => x.OnSavePreprocessing());
            Studio.Studio.Instance.sceneInfo.cameraSaveData = Studio.Studio.Instance.cameraCtrl.Export();
            string path = Path.Combine(message.path, GetTimeNow() + ".png");

            Studio.Studio.Instance.sceneInfo.Save(path);
            PluginUtils.InvokePluginMethod("HSStudioNEOExtSave.StudioNEOExtendSaveMgr", "SaveExtData", path);
        }
Ejemplo n.º 2
0
        public override void Scene_Load(MsgObject message)
        {
            PluginUtils.InvokePluginMethod("LockOnPlugin.LockOnBase", "ResetModState");
            Studio.Studio.Instance.LoadScene(message.path);
            StartCoroutine(StudioNEOExtendSaveMgrLoad());

            IEnumerator StudioNEOExtendSaveMgrLoad()
            {
                for (int i = 0; i < 3; i++)
                {
                    yield return(null);
                }
                PluginUtils.InvokePluginMethod("HSStudioNEOExtSave.StudioNEOExtendSaveMgr", "LoadExtData", message.path);
                PluginUtils.InvokePluginMethod("HSStudioNEOExtSave.StudioNEOExtendSaveMgr", "LoadExtDataRaw", message.path);
            }
        }