Holoville.HOTween  1.2.010
PlugSetColor Class Reference

Plugin for the tweening of the color of your choice. Used for changing material colors different from the default one (like _SpecColor or _Emission). Target for this tween must be of type Material. More...

Inheritance diagram for PlugSetColor:
ABSTweenPlugin

List of all members.

Public Types

enum  ColorName { _Color, _SpecColor, _Emission, _ReflectColor }
 Enumeration of color properties names. More...

Public Member Functions

 PlugSetColor (Color p_endVal)
 Creates a new instance of this plugin using the main ease type.
 PlugSetColor (Color p_endVal, EaseType p_easeType)
 Creates a new instance of this plugin.
 PlugSetColor (Color p_endVal, bool p_isRelative)
 Creates a new instance of this plugin using the main ease type.
 PlugSetColor (Color p_endVal, EaseType p_easeType, bool p_isRelative)
 Creates a new instance of this plugin.
 PlugSetColor (Color p_endVal, AnimationCurve p_easeAnimCurve, bool p_isRelative)
 Creates a new instance of this plugin.
PlugSetColor Property (ColorName p_colorName)
 Selects the color property to change.
PlugSetColor Property (string p_propertyName)
 Selects the color property to change.

Detailed Description

Plugin for the tweening of the color of your choice. Used for changing material colors different from the default one (like _SpecColor or _Emission). Target for this tween must be of type Material.


Member Enumeration Documentation

enum ColorName

Enumeration of color properties names.

Enumerator:
_Color 

Main color of a material.

_SpecColor 

Specular color of a material (used in specular/glossy/vertexlit shaders).

_Emission 

Emissive color of a material (used in vertexlit shaders).

_ReflectColor 

Reflection color of a material (used in reflective shaders).


Constructor & Destructor Documentation

PlugSetColor ( Color  p_endVal)

Creates a new instance of this plugin using the main ease type.

Parameters:
p_endValThe Color value to tween to.
PlugSetColor ( Color  p_endVal,
EaseType  p_easeType 
)

Creates a new instance of this plugin.

Parameters:
p_endValThe Color value to tween to.
p_easeTypeThe EaseType to use.
PlugSetColor ( Color  p_endVal,
bool  p_isRelative 
)

Creates a new instance of this plugin using the main ease type.

Parameters:
p_endValThe Color value to tween to.
p_isRelativeIf true, the given end value is considered relative instead than absolute.
PlugSetColor ( Color  p_endVal,
EaseType  p_easeType,
bool  p_isRelative 
)

Creates a new instance of this plugin.

Parameters:
p_endValThe Color value to tween to.
p_easeTypeThe EaseType to use.
p_isRelativeIf true, the given end value is considered relative instead than absolute.
PlugSetColor ( Color  p_endVal,
AnimationCurve  p_easeAnimCurve,
bool  p_isRelative 
)

Creates a new instance of this plugin.

Parameters:
p_endValThe Color value to tween to.
p_easeAnimCurveThe AnimationCurve to use for easing.
p_isRelativeIf true, the given end value is considered relative instead than absolute.

Member Function Documentation

PlugSetColor Property ( ColorName  p_colorName)

Selects the color property to change.

Parameters:
p_colorNameThe propertyName/colorName to change (see Unity's Material.SetColor if you don't know how it works), set via the PlugSetColor.ColorName enum.
PlugSetColor Property ( string  p_propertyName)

Selects the color property to change.

Parameters:
p_propertyNameThe propertyName/colorName to change (see Unity's Material.SetColor if you don't know how it works).
 All Classes Namespaces Functions Variables Enumerations Properties