From 98240a50543c22cc8949057432101720fce143b6 Mon Sep 17 00:00:00 2001 From: Andre Jeller Date: Mon, 1 Jul 2019 21:48:44 -0300 Subject: [PATCH] ErrorFix - EzButton Creation Error Fix on EzButton creation using the function with parameters Texture2D and GUILayoutOptions. --- EzEditor.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/EzEditor.cs b/EzEditor.cs index 85e8a9a..cf4646b 100644 --- a/EzEditor.cs +++ b/EzEditor.cs @@ -264,7 +264,7 @@ public static bool EzButton(Texture2D texture) { return GUILayout.Button(texture, GUILayout.Width(20f), GUILayout.Height(15f)); } - public static bool EzButton(Texture2D texture, GUILayoutOption[] options) + public static bool EzButton(Texture2D texture, params GUILayoutOption[] options) { return GUILayout.Button(texture, options); } @@ -472,4 +472,4 @@ public static void EzHelpBox(string message, MessageType type, bool wide) } } //namespace EzEditor -#endif // UNITY_EDITOR \ No newline at end of file +#endif // UNITY_EDITOR