Added Editor Menu option for UI Grid Primitive
parent
82585a7cb2
commit
48e162ebde
|
@ -1126,6 +1126,14 @@ namespace UnityEditor.UI
|
|||
go.AddComponent<UIPolygon>();
|
||||
Selection.activeGameObject = go;
|
||||
}
|
||||
|
||||
[MenuItem("GameObject/UI/Extensions/Primitives/UI Grid Renderer", false)]
|
||||
static public void AddUIGridRenderer(MenuCommand menuCommand)
|
||||
{
|
||||
GameObject go = CreateUIElementRoot("UI GridRenderer", menuCommand, s_ImageGUIElementSize);
|
||||
go.AddComponent<UIGridRenderer>();
|
||||
Selection.activeGameObject = go;
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Re-Orderable Lists
|
||||
|
|
Loading…
Reference in New Issue