Add heightfield geom type with Unity terrain, import not yet supported

This commit is contained in:
Bálint Hodossy
2023-12-04 13:55:38 +00:00
parent c0b7b9873d
commit 8ec1e4e2b8
5 changed files with 121 additions and 5 deletions
@@ -30,7 +30,7 @@ public class MjShapeComponentEditor : Editor {
var shapeType = serializedObject.FindProperty("ShapeType");
EditorGUILayout.PropertyField(shapeType);
EditorGUILayout.PropertyField(
serializedObject.FindProperty($"{shapeType.enumDisplayNames[shapeType.enumValueIndex]}"),
serializedObject.FindProperty($"{shapeType.enumNames[shapeType.enumValueIndex]}"),
includeChildren: true);
serializedObject.ApplyModifiedProperties();
}