FPSCounter.ShadowAndOutline.DrawShadow(UnityEngine.Rect, UnityEngine.GUIContent, UnityEngine.GUIStyle, UnityEngine.Color, UnityEngine.Color, UnityEngine.Vector2)

Here are the examples of the csharp api FPSCounter.ShadowAndOutline.DrawShadow(UnityEngine.Rect, UnityEngine.GUIContent, UnityEngine.GUIStyle, UnityEngine.Color, UnityEngine.Color, UnityEngine.Vector2) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

2 Examples 7

19 View Source File : ShadowAndOutline.cs
License : Apache License 2.0
Project Creator : ManlyMarco

public static void DrawLayoutShadow(GUIContent content, GUIStyle style, Color txtColor, Color shadowColor, Vector2 direction, params GUILayoutOption[] options)
        {
            DrawShadow(GUILayoutUtility.GetRect(content, style, options), content, style, txtColor, shadowColor, direction);
        }

19 View Source File : ShadowAndOutline.cs
License : Apache License 2.0
Project Creator : ManlyMarco

public static bool DrawButtonWithShadow(Rect r, GUIContent content, GUIStyle style, float shadowAlpha, Vector2 direction)
        {
            GUIStyle letters = new GUIStyle(style);
            letters.normal.background = null;
            letters.hover.background = null;
            letters.active.background = null;

            bool result = GUI.Button(r, content, style);

            Color color = r.Contains(Event.current.mousePosition) ? letters.hover.textColor : letters.normal.textColor;

            DrawShadow(r, content, letters, color, new Color(0f, 0f, 0f, shadowAlpha), direction);

            return result;
        }