rimworld-animation-studio/Assets/Editor/AdvancedPolygonColliderEditor.cs
2022-09-20 01:03:55 -05:00

22 lines
No EOL
546 B
C#

using UnityEngine;
using UnityEditor;
using System.Collections;
namespace DigitalRuby.AdvancedPolygonCollider
{
[CustomEditor(typeof(AdvancedPolygonCollider))]
public class AdvancedPolygonColliderEditor : Editor
{
public override void OnInspectorGUI()
{
base.OnInspectorGUI();
AdvancedPolygonCollider c = target as AdvancedPolygonCollider;
if (c != null)
{
EditorGUILayout.LabelField("Vertices: " + c.VerticesCount);
}
}
}
}