This commit is contained in:
SoulliesOfficial
2025-06-06 10:14:55 -04:00
parent d4e860fa16
commit db4d131192
1088 changed files with 45704 additions and 2260 deletions

View File

@@ -0,0 +1,31 @@
using UnityEngine;
using System.Collections;
using UnityEditor;
using Dreamteck.Splines.Editor;
namespace Dreamteck.Splines.Primitives
{
public class RoundedRectangleEditor : PrimitiveEditor
{
public override string GetName()
{
return "Rounded Rect";
}
public override void Open(DreamteckSplinesEditor editor)
{
base.Open(editor);
primitive = new RoundedRectangle();
primitive.offset = origin;
}
protected override void OnGUI()
{
base.OnGUI();
RoundedRectangle rect = (RoundedRectangle)primitive;
rect.size = EditorGUILayout.Vector2Field("Size", rect.size);
rect.xRadius = EditorGUILayout.FloatField("X Radius", rect.xRadius);
rect.yRadius = EditorGUILayout.FloatField("Y Radius", rect.yRadius);
}
}
}