A RaTweenMaterialColorBase<TargetT> tween handles the logics of tweening the Color of a Renderer's Material
Note: By default this targets the Instance Material. Use SetSharedMaterial(bool) to target the Shared Material instead
Note: RaTweenUtilExtensions for all extension methods
More...
|
| RaTweenMaterialColor (Renderer target, Color startColor, Color endColor, float duration) |
|
| RaTweenMaterialColor (Renderer target, Color endColor, float duration) |
|
RaTweenMaterialColor | SetSharedMaterial (bool enabled=true) |
| When Enabled, it targets the shared material of the renderer. Else it targets the instance material. More...
|
|
| RaTweenMaterialColorBase (TargetT target, Color startColor, Color endColor, float duration) |
|
| RaTweenMaterialColorBase (TargetT target, Color endColor, float duration) |
|
RaTweenMaterialColorBase< TargetT > | SetTargetPropertyDefault () |
| Makes it so the DefaultColorProperty of the Target Material is affected by the Tween
|
|
RaTweenMaterialColorBase< TargetT > | SetTargetProperty (string propertyName) |
| Makes it so the given property of the Target Material is affected by the Tween
Note: Doing it by ID (Calling SetTargetProperty(int)) is more efficient.
More...
|
|
RaTweenMaterialColorBase< TargetT > | SetTargetProperty (int propertyID) |
| Makes it so the given property of the Target Material is affected by the Tween
Note: PropertyID is retrieved by calling Shader.PropertyToID(propertyName)
More...
|
|
RaTweenMaterialColorBase< TargetT > | SetExcludeChannels (Channel excludeChannels) |
| Makes it so the given color channels are excluded from the tween. So they remain the value they have at the moments of evaluation More...
|
|
RaTweenMaterialColorBase< TargetT > | OnlyIncludeChannels (Channel inclChannels) |
| Makes it so the given color channels which are not specified by the input are excluded. So they remain the value they have at the moments of evaluation More...
|
|
|
override Material | GetMaterial (Renderer target) |
|
override RaTweenMaterialColorBase< Renderer > | MaterialColorClone () |
|
override void | SetDefaultValues () |
|
override void | DynamicEvaluation (float normalizedValue, TargetT target, Color start, Color end) |
|
override RaTweenDynamic< TargetT, Color > | DynamicClone () |
|
override Color | ReadValue (TargetT reference) |
|
override Color | GetEndByDelta (Color start, Color delta) |
|
abstract RaTweenMaterialColorBase< TargetT > | MaterialColorClone () |
|
abstract Material | GetMaterial (TargetT target) |
|
|
const string | DefaultColorProperty |
|
A RaTweenMaterialColorBase<TargetT> tween handles the logics of tweening the Color of a Renderer's Material
Note: By default this targets the Instance Material. Use SetSharedMaterial(bool) to target the Shared Material instead
Note: RaTweenUtilExtensions for all extension methods
◆ MaterialColorClone()
◆ SetSharedMaterial()
RaTweenMaterialColor RaTweening.RaRenderer.RaTweenMaterialColor.SetSharedMaterial |
( |
bool |
enabled = true | ) |
|
When Enabled, it targets the shared material of the renderer. Else it targets the instance material.
- Parameters
-
enabled | When True, it targets the shared material, else the instance material |