Esempio n. 1
0
        public override void OnInspectorGUI()
        {
            PoseVoxelSet set = (PoseVoxelSet)target;

            set.Debugging = GUILayout.Toggle(set.Debugging, "Debugging");

            //DrawDefaultInspector();
            DisplayDebuggingInfo(set);
        }
Esempio n. 2
0
 private void DisplayDebuggingInfo(PoseVoxelSet set)
 {
     //using (new EditorGUI.DisabledScope(map.Debugging == false))
     if (set.Debugging)
     {
         foreach (var voxel in set.Items)
         {
             DisplayVoxel(voxel);
         }
     }
 }