Exemplo n.º 1
0
 public override void OnInspectorGUI()
 {
     EditorGUILayout.PropertyField(size_prop, new GUIContent("Size"));
     EditorGUILayout.PropertyField(spacing_prop, new GUIContent("Spacing"));
     if (GUILayout.Button("Rebuild Grid"))
     {
         _grid.RebuildGridGeometry();
     }
     serializedObject.ApplyModifiedProperties();
 }