HasSingleGradient() public static method

public static HasSingleGradient ( ) : bool
return bool
        internal static void Show(SerializedProperty prop)
        {
            GUIContent  content     = new GUIContent("Copy");
            GUIContent  content2    = new GUIContent("Paste");
            GenericMenu genericMenu = new GenericMenu();

            genericMenu.AddItem(content, false, new GenericMenu.MenuFunction(new GradientContextMenu(prop).Copy));
            if (ParticleSystemClipboard.HasSingleGradient())
            {
                genericMenu.AddItem(content2, false, new GenericMenu.MenuFunction(new GradientContextMenu(prop).Paste));
            }
            else
            {
                genericMenu.AddDisabledItem(content2);
            }
            genericMenu.ShowAsContext();
        }
        internal static void Show(SerializedProperty prop)
        {
            GUIContent          content     = EditorGUIUtility.TrTextContent("Copy", null, null);
            GUIContent          content2    = EditorGUIUtility.TrTextContent("Paste", null, null);
            GenericMenu         genericMenu = new GenericMenu();
            GradientContextMenu @object     = new GradientContextMenu(prop);

            genericMenu.AddItem(content, false, new GenericMenu.MenuFunction(@object.Copy));
            if (ParticleSystemClipboard.HasSingleGradient())
            {
                genericMenu.AddItem(content2, false, new GenericMenu.MenuFunction(@object.Paste));
            }
            else
            {
                genericMenu.AddDisabledItem(content2);
            }
            genericMenu.ShowAsContext();
        }
        static internal void Show(SerializedProperty prop)
        {
            // Curve context menu
            GUIContent copy  = EditorGUIUtility.TrTextContent("Copy");
            GUIContent paste = EditorGUIUtility.TrTextContent("Paste");

            GenericMenu menu         = new GenericMenu();
            var         gradientMenu = new GradientContextMenu(prop);

            menu.AddItem(copy, false, gradientMenu.Copy);
            if (ParticleSystemClipboard.HasSingleGradient())
            {
                menu.AddItem(paste, false, gradientMenu.Paste);
            }
            else
            {
                menu.AddDisabledItem(paste);
            }

            menu.ShowAsContext();
        }