23 lines
685 B
C#
23 lines
685 B
C#
using UnityEditor;
|
|
using UnityEngine;
|
|
|
|
namespace Pinwheel.Griffin
|
|
{
|
|
[CustomEditor(typeof(GTerrainData))]
|
|
public class GTerrainDataInspector : Editor
|
|
{
|
|
private GTerrainData instance;
|
|
|
|
private void OnEnable()
|
|
{
|
|
instance = (GTerrainData)target;
|
|
}
|
|
|
|
public override void OnInspectorGUI()
|
|
{
|
|
EditorGUILayout.LabelField("Select the corresponding terrain in the scene to edit terrain data.", GEditorCommon.WordWrapItalicLabel);
|
|
EditorGUILayout.LabelField("Do NOT duplicate this asset, it won't work. Instead use Export/Import function to copy data.", GEditorCommon.WarningLabel);
|
|
}
|
|
}
|
|
}
|