From 062d71793057c7f637810bd065db0ffaf4297759 Mon Sep 17 00:00:00 2001 From: "Simon (darkside) Jackson" Date: Thu, 10 Sep 2015 22:58:09 +0100 Subject: [PATCH] Pulled forward new UI Selectable extension to replace the old UI button script, offers a more extensible solution --HG-- branch : develop_5.2 --- Scripts/Editor/UIExtensionsMenuOptions.cs | 3 +- .../{UIButton.cs => UISelectableExtension.cs} | 65 ++++++++++++++----- ....cs.meta => UISelectableExtension.cs.meta} | 6 +- 3 files changed, 54 insertions(+), 20 deletions(-) rename Scripts/{UIButton.cs => UISelectableExtension.cs} (56%) rename Scripts/{UIButton.cs.meta => UISelectableExtension.cs.meta} (53%) diff --git a/Scripts/Editor/UIExtensionsMenuOptions.cs b/Scripts/Editor/UIExtensionsMenuOptions.cs index 6faa789..79e1197 100644 --- a/Scripts/Editor/UIExtensionsMenuOptions.cs +++ b/Scripts/Editor/UIExtensionsMenuOptions.cs @@ -362,7 +362,8 @@ namespace UnityEditor.UI image.type = Image.Type.Sliced; image.color = s_DefaultSelectableColor; - UIButton bt = uiButtonRoot.AddComponent(); + Button bt = uiButtonRoot.AddComponent