Ejemplo n.º 1
0
            public static void UnityEventWithFade(SerializedProperty property, float faded, string label, DColor dColor, int eventsCount, bool indentContent = false, bool addExtraSpaceWhenExpanded = false)
            {
                float alpha = GUI.color.a;

                if (FadeOut.Begin(faded, indentContent))
                {
                    UnityEvent(property, label, dColor, eventsCount);
                }
                FadeOut.End(faded, addExtraSpaceWhenExpanded, alpha);
            }
Ejemplo n.º 2
0
            public static void DrawWithFade(SerializedProperty property, float faded, DColor dColor, bool indentContent = false, bool addExtraSpaceWhenExpanded = false, params GUILayoutOption[] options)
            {
                float alpha = GUI.color.a;

                if (FadeOut.Begin(faded, indentContent))
                {
                    Draw(property, dColor, options);
                }
                FadeOut.End(faded, addExtraSpaceWhenExpanded, alpha);
            }
Ejemplo n.º 3
0
            public static void DrawWithFade(SerializedProperty property, float faded, float rowHeight, DColor dColor, float propertyWidth, bool indentContent = false, bool addExtraSpaceWhenExpanded = false)
            {
                float alpha = GUI.color.a;

                if (FadeOut.Begin(faded, indentContent))
                {
                    Draw(property, dColor, propertyWidth, rowHeight);
                }
                FadeOut.End(faded, addExtraSpaceWhenExpanded, alpha);
            }
Ejemplo n.º 4
0
            public static void DrawWithFade(SerializedProperty property, float faded, ColorName colorName, string emptyMessage = EMPTY_MESSAGE, float extraLineSpacing = 0, params GUILayoutOption[] options)
            {
                float alpha = GUI.color.a;

                if (FadeOut.Begin(faded, false))
                {
                    Draw(property, colorName, emptyMessage, extraLineSpacing, options);
                }
                FadeOut.End(faded, true, alpha);
            }