public override void OnInspectorGUI() { PoseVoxelSet set = (PoseVoxelSet)target; set.Debugging = GUILayout.Toggle(set.Debugging, "Debugging"); //DrawDefaultInspector(); DisplayDebuggingInfo(set); }
private void DisplayDebuggingInfo(PoseVoxelSet set) { //using (new EditorGUI.DisabledScope(map.Debugging == false)) if (set.Debugging) { foreach (var voxel in set.Items) { DisplayVoxel(voxel); } } }