2024-03-05 17:34:41 +08:00
|
|
|
#if GRIFFIN
|
2023-12-30 17:37:48 +08:00
|
|
|
using UnityEditor;
|
|
|
|
|
|
|
|
namespace Pinwheel.Griffin.SplineTool
|
|
|
|
{
|
|
|
|
public class GSplineSegmentInspectorDrawer
|
|
|
|
{
|
|
|
|
private GSplineSegment instance;
|
|
|
|
|
|
|
|
public GSplineSegmentInspectorDrawer(GSplineSegment s)
|
|
|
|
{
|
|
|
|
instance = s;
|
|
|
|
}
|
|
|
|
|
|
|
|
public static GSplineSegmentInspectorDrawer Create(GSplineSegment s)
|
|
|
|
{
|
|
|
|
return new GSplineSegmentInspectorDrawer(s);
|
|
|
|
}
|
|
|
|
|
|
|
|
public void DrawGUI()
|
|
|
|
{
|
|
|
|
EditorGUIUtility.wideMode = true;
|
|
|
|
instance.StartTangent = EditorGUILayout.Vector3Field("Start Tangent", instance.StartTangent);
|
|
|
|
instance.EndTangent = EditorGUILayout.Vector3Field("End Tangent", instance.EndTangent);
|
|
|
|
EditorGUIUtility.wideMode = false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2024-03-05 17:34:41 +08:00
|
|
|
#endif
|