C# Class ColorBand, ColorBands

Inheritance: UnityEngine.ScriptableObject
Exibir arquivo Open project: rstecca/ColorBands Class Usage Examples

Public Properties

Property Type Description
ACurve UnityEngine.AnimationCurve
BCurve UnityEngine.AnimationCurve
GCurve UnityEngine.AnimationCurve
RCurve UnityEngine.AnimationCurve
biggerPreview bool
colorSpace COLORSPACE
discrete bool
discreteMethod DISCRETE_METHOD
discreteSteps int
name string
previewTexture UnityEngine.Texture2D

Public Methods

Method Description
ColorBand ( ) : System.Collections
Evaluate ( float time01 ) : Color

Evaluates color curves at time time01

OnEnable ( ) : void
buildPreviewTexture ( ) : void

Builds the preview texture.

rebuildPreviewTexture ( ) : void

Private Methods

Method Description
GetColorAt ( float t, bool useAlpha = false, COLORSPACE _colorSpace = COLORSPACE.RGB ) : Color

Method Details

ColorBand() public method

public ColorBand ( ) : System.Collections
return System.Collections

Evaluate() public method

Evaluates color curves at time time01
public Evaluate ( float time01 ) : Color
time01 float The time point where the color is computed. Value must be between 0 and 1.
return Color

OnEnable() public method

public OnEnable ( ) : void
return void

buildPreviewTexture() public method

Builds the preview texture.
public buildPreviewTexture ( ) : void
return void

rebuildPreviewTexture() public method

public rebuildPreviewTexture ( ) : void
return void

Property Details

ACurve public_oe property

public AnimationCurve,UnityEngine ACurve
return UnityEngine.AnimationCurve

BCurve public_oe property

public AnimationCurve,UnityEngine BCurve
return UnityEngine.AnimationCurve

GCurve public_oe property

public AnimationCurve,UnityEngine GCurve
return UnityEngine.AnimationCurve

RCurve public_oe property

public AnimationCurve,UnityEngine RCurve
return UnityEngine.AnimationCurve

biggerPreview public_oe property

public bool biggerPreview
return bool

colorSpace public_oe property

public COLORSPACE colorSpace
return COLORSPACE

discrete public_oe property

public bool discrete
return bool

discreteMethod public_oe property

public DISCRETE_METHOD discreteMethod
return DISCRETE_METHOD

discreteSteps public_oe property

public int discreteSteps
return int

name public_oe property

public string name
return string

previewTexture public_oe property

public Texture2D,UnityEngine previewTexture
return UnityEngine.Texture2D