/// Inits the editor. public e2dTerrainEditor() { mSceneEditor = new e2dTerrainSceneEditor(this); // setup the undo handler FieldInfo undoCallback = typeof(EditorApplication).GetField("undoRedoPerformed", BindingFlags.NonPublic | BindingFlags.Static); undoCallback.SetValue(null, (EditorApplication.CallbackFunction)OnUndoRedo); }
/// Inits the editor. public e2dTerrainEditor() { mSceneEditor = new e2dTerrainSceneEditor(this); // setup the undo handler FieldInfo undoCallback = typeof(EditorApplication).GetField("undoRedoPerformed", BindingFlags.NonPublic | BindingFlags.Static); undoCallback.SetValue(null, (EditorApplication.CallbackFunction)OnUndoRedo); }