mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-05-13 14:04:29 -05:00
24 lines
763 B
C#
24 lines
763 B
C#
using UnityEditor;
|
|
using UnityEngine;
|
|
|
|
namespace UniVRM10
|
|
{
|
|
[CustomEditor(typeof(VRM10SpringBoneCollider))]
|
|
class VRM10SpringBoneColliderEditor : Editor
|
|
{
|
|
public override void OnInspectorGUI()
|
|
{
|
|
if (VRM10Window.Active == target)
|
|
{
|
|
GUI.backgroundColor = Color.cyan;
|
|
Repaint();
|
|
}
|
|
var property = serializedObject.FindProperty("m_Script");
|
|
var script = (VRM10SpringBoneCollider)target;
|
|
EditorGUILayout.PropertyField(property, new GUIContent("Script (" + script.GetIdentificationName() + ")"));
|
|
DrawPropertiesExcluding(serializedObject, "m_Script");
|
|
serializedObject.ApplyModifiedProperties();
|
|
}
|
|
}
|
|
}
|