Class MaterialColor | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class MaterialColor

    Inheritance
    System.Object
    Color
    ColorSwatch<System.Int32>
    MaterialColor
    Inherited Members
    ColorSwatch<Int32>._swatch
    ColorSwatch<Int32>.Item[Int32]
    ColorSwatch<Int32>.Equals(ColorSwatch<Int32>)
    ColorSwatch<Int32>.Equals(Object)
    ColorSwatch<Int32>.GetHashCode()
    ColorSwatch<Int32>.ToString()
    Color.clear
    Color.black
    Color.white
    Color.fromARGB(Int32, Int32, Int32, Int32)
    Color.fromRGBO(Int32, Int32, Int32, Single)
    Color.value
    Color.alpha
    Color.opacity
    Color.red
    Color.green
    Color.blue
    Color.withAlpha(Int32)
    Color.withOpacity(Single)
    Color.withRed(Int32)
    Color.withGreen(Int32)
    Color.withBlue(Int32)
    Color.computeLuminance()
    Color.lerp(Color, Color, Single)
    Color.Equals(Color)
    Namespace: Unity.UIWidgets.material
    Syntax
    public class MaterialColor : ColorSwatch<int>, IEquatable<Color>

    Constructors

    MaterialColor(Int64, Dictionary<Int32, Color>)

    Declaration
    public MaterialColor(long primary, Dictionary<int, Color> swatch)
    Parameters
    Type Name Description
    System.Int64 primary
    System.Collections.Generic.Dictionary<System.Int32, Color> swatch

    Properties

    shade100

    Declaration
    public Color shade100 { get; }
    Property Value
    Type Description
    Color

    shade200

    Declaration
    public Color shade200 { get; }
    Property Value
    Type Description
    Color

    shade300

    Declaration
    public Color shade300 { get; }
    Property Value
    Type Description
    Color

    shade400

    Declaration
    public Color shade400 { get; }
    Property Value
    Type Description
    Color

    shade50

    Declaration
    public Color shade50 { get; }
    Property Value
    Type Description
    Color

    shade500

    Declaration
    public Color shade500 { get; }
    Property Value
    Type Description
    Color

    shade600

    Declaration
    public Color shade600 { get; }
    Property Value
    Type Description
    Color

    shade700

    Declaration
    public Color shade700 { get; }
    Property Value
    Type Description
    Color

    shade800

    Declaration
    public Color shade800 { get; }
    Property Value
    Type Description
    Color

    shade900

    Declaration
    public Color shade900 { get; }
    Property Value
    Type Description
    Color

    Extension Methods

    Conversions.toColor(Color)
    Conversions.toColor32(Color)
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023