static EditorPlusHistoryInternal() { currentID = EditorPrefs.GetInt("EditorPlusHistory.curID", 0); level = UnityEngine.SceneManagement.SceneManager.GetActiveScene().name; projectObjectsSave = new EditorPlusHistoryProjectObjects(); HandleSceneSaveObject(); LoadData(); ForceDataUpdate(); EditorApplication.update += Update; EditorApplication.playmodeStateChanged += PlayModeChanged; }
static EditorPlusHistoryInternal() { currentID = EditorPrefs.GetInt("EditorPlusHistory.curID", 0); historyUseSceneSaving = EditorPrefs.GetBool("EditorPlusUseSceneSaving", true); level = Application.loadedLevelName; projectObjectsSave = new EditorPlusHistoryProjectObjects(); HandleSceneSaveObject(); LoadData(); ForceDataUpdate(); EditorApplication.update += Update; EditorApplication.playmodeStateChanged += PlayModeChanged; }