From c76135b55a2b36122fa73926fc95037d5be8eb8b Mon Sep 17 00:00:00 2001 From: Simon Jackson Date: Sun, 8 Jan 2017 13:31:47 +0000 Subject: [PATCH] Added Editor Menu options for the NonDrawing Graphic --HG-- branch : develop_5.3 --- Editor/UIExtensionsMenuOptions.cs | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/Editor/UIExtensionsMenuOptions.cs b/Editor/UIExtensionsMenuOptions.cs index f7d1ddf..e5d3d63 100644 --- a/Editor/UIExtensionsMenuOptions.cs +++ b/Editor/UIExtensionsMenuOptions.cs @@ -1690,6 +1690,26 @@ namespace UnityEditor.UI } #endregion + #region Non Drawing Graphic options + [MenuItem("GameObject/UI/Extensions/NonDrawingGraphicClickable", false)] + static public void AddNonDrawingGraphic(MenuCommand menuCommand) + { + GameObject go = CreateUIElementRoot("NonDrawing Graphic", menuCommand, s_ImageGUIElementSize); + go.AddComponent(); + Selection.activeGameObject = go; + } + + [MenuItem("GameObject/UI/Extensions/NonDrawingGraphic", false)] + static public void AddClickableNonDrawingGraphic(MenuCommand menuCommand) + { + GameObject go = CreateUIElementRoot("NonDrawing Graphic-Clickable", menuCommand, s_ImageGUIElementSize); + go.AddComponent(); + go.AddComponent(); + Selection.activeGameObject = go; + } + #endregion + + #endregion #region Helper Functions