Show / Hide Table of Contents

Class Gradient

Inheritance
Object
Gradient
Implements
IEquatable<Gradient>
Inherited Members
Object.ToString()
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetType()
Object.MemberwiseClone()
Namespace: UnityEngine
Assembly: UnityEngine.dll
Syntax
public class Gradient : IEquatable<Gradient>

Constructors

| Improve this Doc View Source

Gradient()

Declaration
public Gradient()

Properties

alphaKeys

Declaration
public GradientAlphaKey[] alphaKeys { get; set; }
Property Value
Type Description
GradientAlphaKey[]

colorKeys

Declaration
public GradientColorKey[] colorKeys { get; set; }
Property Value
Type Description
GradientColorKey[]

mode

Declaration
public GradientMode mode { get; set; }
Property Value
Type Description
GradientMode

Methods

| Improve this Doc View Source

Equals(Object)

Declaration
public override bool Equals(object o)
Parameters
Type Name Description
Object o
Returns
Type Description
Boolean
Overrides
Object.Equals(Object)
| Improve this Doc View Source

Equals(Gradient)

Declaration
public bool Equals(Gradient other)
Parameters
Type Name Description
Gradient other
Returns
Type Description
Boolean

Evaluate(Single)

Declaration
public Color Evaluate(float time)
Parameters
Type Name Description
Single time
Returns
Type Description
Color
| Improve this Doc View Source

Finalize()

Declaration
protected void Finalize()
| Improve this Doc View Source

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
Int32
Overrides
Object.GetHashCode()

SetKeys(GradientColorKey[], GradientAlphaKey[])

Declaration
public void SetKeys(GradientColorKey[] colorKeys, GradientAlphaKey[] alphaKeys)
Parameters
Type Name Description
GradientColorKey[] colorKeys
GradientAlphaKey[] alphaKeys

Implements

System.IEquatable<T>

Extension Methods

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