Show / Hide Table of Contents

Struct Color32

Inherited Members
ValueType.Equals(Object)
ValueType.GetHashCode()
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetType()
Namespace: UnityEngine
Assembly: UnityEngine.dll
Syntax
public struct Color32

Constructors

| Improve this Doc View Source

Color32(Byte, Byte, Byte, Byte)

Declaration
public Color32(byte r, byte g, byte b, byte a)
Parameters
Type Name Description
Byte r
Byte g
Byte b
Byte a

Fields

| Improve this Doc View Source

a

Declaration
public byte a
Field Value
Type Description
Byte
| Improve this Doc View Source

b

Declaration
public byte b
Field Value
Type Description
Byte
| Improve this Doc View Source

g

Declaration
public byte g
Field Value
Type Description
Byte
| Improve this Doc View Source

r

Declaration
public byte r
Field Value
Type Description
Byte

Methods

| Improve this Doc View Source

Lerp(Color32, Color32, Single)

Declaration
public static Color32 Lerp(Color32 a, Color32 b, float t)
Parameters
Type Name Description
Color32 a
Color32 b
Single t
Returns
Type Description
Color32
| Improve this Doc View Source

LerpUnclamped(Color32, Color32, Single)

Declaration
public static Color32 LerpUnclamped(Color32 a, Color32 b, float t)
Parameters
Type Name Description
Color32 a
Color32 b
Single t
Returns
Type Description
Color32
| Improve this Doc View Source

ToString()

Declaration
public override string ToString()
Returns
Type Description
String
Overrides
ValueType.ToString()
| Improve this Doc View Source

ToString(String)

Declaration
public string ToString(string format)
Parameters
Type Name Description
String format
Returns
Type Description
String

Operators

| Improve this Doc View Source

Implicit(Color to Color32)

Declaration
public static implicit operator Color32(Color c)
Parameters
Type Name Description
Color c
Returns
Type Description
Color32
| Improve this Doc View Source

Implicit(Color32 to Color)

Declaration
public static implicit operator Color(Color32 c)
Parameters
Type Name Description
Color32 c
Returns
Type Description
Color

Extension Methods

MustExtensions.MustBeEqual<T>(T, T)
MustExtensions.MustBeEqual<T>(T, T, String)
MustExtensions.MustNotBeEqual<T>(T, T)
MustExtensions.MustNotBeEqual<T>(T, T, String)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX