mirror of
https://gitgud.io/AbstractConcept/rimworld-animation-studio.git
synced 2024-08-15 00:43:27 +00:00
22 lines
No EOL
546 B
C#
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);
|
|
}
|
|
}
|
|
}
|
|
} |