You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
590 B
29 lines
590 B
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEditor;
|
|
using UnityEngine;
|
|
|
|
namespace IndieMarc.CurvedLine
|
|
{
|
|
|
|
[CustomEditor(typeof(CurvedLine2D)), CanEditMultipleObjects]
|
|
public class CurvedLineEditor : Editor
|
|
{
|
|
|
|
public override void OnInspectorGUI()
|
|
{
|
|
CurvedLine2D myScript = target as CurvedLine2D;
|
|
|
|
DrawDefaultInspector();
|
|
if (GUILayout.Button("Refresh Now"))
|
|
{
|
|
myScript.RefreshAll();
|
|
}
|
|
|
|
EditorGUILayout.Space();
|
|
}
|
|
|
|
}
|
|
|
|
}
|