Revert "Added new component"

This reverts commit 8a01b08e7b.
pull/474/head
GoShikhar 2024-04-26 04:07:23 +05:30
parent 8a01b08e7b
commit 7fe6f4197b
2 changed files with 74 additions and 76 deletions

View File

@ -705,8 +705,8 @@ namespace UnityEditor.UI
//Setup container center point //Setup container center point
RectTransform rectTransformCenter = uiScrollerCenter.GetComponent<RectTransform>(); RectTransform rectTransformCenter = uiScrollerCenter.GetComponent<RectTransform>();
rectTransformCenter.anchorMin = new Vector2(0.3f, 0f); rectTransformCenter.anchorMin = new Vector2(0.3f,0f);
rectTransformCenter.anchorMax = new Vector2(0.6f, 1f); rectTransformCenter.anchorMax = new Vector2(0.6f,1f);
rectTransformCenter.sizeDelta = Vector2.zero; rectTransformCenter.sizeDelta = Vector2.zero;
uiscr.Center = uiScrollerCenter.GetComponent<RectTransform>(); uiscr.Center = uiScrollerCenter.GetComponent<RectTransform>();
@ -1370,14 +1370,6 @@ namespace UnityEditor.UI
Selection.activeGameObject = go; 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)] [MenuItem("GameObject/UI/Extensions/Primitives/UI Circle", false)]
static public void AddUICircle(MenuCommand menuCommand) static public void AddUICircle(MenuCommand menuCommand)
{ {

View File

@ -11,6 +11,12 @@ namespace UnityEngine.UI.Extensions
public class UISquircleBorder : UIPrimitiveBase public class UISquircleBorder : UIPrimitiveBase
{ {
const float C = 1.0f; const float C = 1.0f;
public enum Type
{
Classic,
Scaled
}
[Space] [Space]
public Type squircleType = Type.Scaled; public Type squircleType = Type.Scaled;
[Range(1, 40)] [Range(1, 40)]