parent
8a01b08e7b
commit
7fe6f4197b
|
@ -1370,14 +1370,6 @@ namespace UnityEditor.UI
|
|||
Selection.activeGameObject = go;
|
||||
}
|
||||
|
||||
[MenuItem("GameObject/UI/Extensions/Primitives/UI SquircleBorder", false)]
|
||||
static public void AddUISquircleBorder(MenuCommand menuCommand)
|
||||
{
|
||||
GameObject go = CreateUIElementRoot("UI SquircleBorder", menuCommand, s_ImageGUIElementSize);
|
||||
go.AddComponent<UISquircleBorder>();
|
||||
Selection.activeGameObject = go;
|
||||
}
|
||||
|
||||
[MenuItem("GameObject/UI/Extensions/Primitives/UI Circle", false)]
|
||||
static public void AddUICircle(MenuCommand menuCommand)
|
||||
{
|
||||
|
|
|
@ -11,6 +11,12 @@ namespace UnityEngine.UI.Extensions
|
|||
public class UISquircleBorder : UIPrimitiveBase
|
||||
{
|
||||
const float C = 1.0f;
|
||||
public enum Type
|
||||
{
|
||||
Classic,
|
||||
Scaled
|
||||
}
|
||||
|
||||
[Space]
|
||||
public Type squircleType = Type.Scaled;
|
||||
[Range(1, 40)]
|
||||
|
|
Loading…
Reference in New Issue