Esempio n. 1
0
        public static bool SpriteButton(Sprite sprite, bool respectRatio = false, params GUILayoutOption[] options)
        {
            GUIStyle style       = UnityEngine.GUI.skin.button;
            Rect     controlRect = GUILayoutUtility.GetRect(GUIContent.none, style, options);

            return(GUIEx.SpriteButton(sprite, controlRect, style, respectRatio));
        }
Esempio n. 2
0
 public static bool SpriteButton(Sprite sprite, Rect position, bool respectRatio = false)
 {
     return(GUIEx.SpriteButton(sprite, position, UnityEngine.GUI.skin.button, respectRatio));
 }