You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
632 B
C#
24 lines
632 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEditor;
|
|
using UnityEngine.UIElements;
|
|
using UnityEngine.Events;
|
|
using System.Collections;
|
|
using SiegeSong;
|
|
|
|
[CustomEditor(typeof(TerrainPlateInstantiator))]
|
|
public class TerrainPlateInstantiatorEditor : Editor
|
|
{
|
|
public override VisualElement CreateInspectorGUI()
|
|
{
|
|
var inspector = new VisualElement();
|
|
var button = new Button();
|
|
button.text = "Instantiate!";
|
|
button.clicked += ((TerrainPlateInstantiator)this.target).InstantiatePlates;
|
|
inspector.Add(button);
|
|
|
|
return inspector;
|
|
}
|
|
}
|