Firstborn/Library/PackageCache/com.unity.terrain-tools@4.0.5/Editor/TerrainToolbox/TerrainGroupInspector.cs
Schaken-Mods 4ff395c862 Finished the NPC Creator tool
Finished the NPC Creator tool
2023-04-27 18:37:28 -05:00

21 lines
555 B
C#

using UnityEditor;
using UnityEngine;
[CustomEditor(typeof(TerrainGroup))]
internal class TerrainGroupInspector : Editor
{
Terrain[] childTerrains;
public override void OnInspectorGUI()
{
TerrainGroup groupTarget = (TerrainGroup)target;
EditorGUILayout.Separator();
groupTarget.GroupID = EditorGUILayout.IntField("Group ID", groupTarget.GroupID);
EditorGUILayout.Separator();
if (GUILayout.Button("Update Child Terrains"))
{
groupTarget.UpdateChildTerrains();
}
}
}