//---------------------------------------------------------------- private void OnEnable() { //get script Reference creator = (TileWorldCreator)target; //SceneView.onSceneGUIDelegate = GridUpdate; LoadResources(); undoStack = new TileWorldUndoStack <bool[]>(); redoStack = new TileWorldUndoStack <bool[]>(); //get all available masks TileWorldMaskLookup.GetMasks(out creator.iMasks, out _maskNames); //get all available algorithms TileWorldAlgorithmLookup.GetAlgorithms(out creator.iAlgorithms, out algorithmNames); #if UNITY_5_3_OR_NEWER || UNITY_5_3 currentScene = EditorSceneManager.GetActiveScene(); #else currentScene = EditorApplication.currentScene; #endif EditorApplication.hierarchyWindowChanged += HierarchyWindowChanged; }
public void OnEnable() { config = target as TileWorldConfiguration; //get all available algorithms by name TileWorldAlgorithmLookup.GetAlgorithmNames(out algorithmNames); LoadResources(); }