private void OnEnable() { VoxelEditWindow.ShowWindow(); lastTool = Tools.current; Tools.current = UnityEditor.Tool.None; AddPlanesHelper(); }
public override void OnInspectorGUI() { //DrawDefaultInspector(); if (GUILayout.Button("Voxel Mesh Window")) { VoxelEditWindow.ShowWindow(); } serializedObject.ApplyModifiedProperties(); }