RaTweening 1.0.0
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | List of all members
RaTweening.RaRenderer.RaTweenMaterialColor Class Reference

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...

Inheritance diagram for RaTweening.RaRenderer.RaTweenMaterialColor:
RaTweening.Core.RaTweenMaterialColorBase< Renderer >

Public Member Functions

 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...
 
- Public Member Functions inherited from RaTweening.Core.RaTweenMaterialColorBase< Renderer >
 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...
 

Protected Member Functions

override Material GetMaterial (Renderer target)
 
override RaTweenMaterialColorBase< Renderer > MaterialColorClone ()
 
- Protected Member Functions inherited from RaTweening.Core.RaTweenMaterialColorBase< Renderer >
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)
 

Additional Inherited Members

- Static Public Attributes inherited from RaTweening.Core.RaTweenMaterialColorBase< Renderer >
const string DefaultColorProperty
 

Detailed Description

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

Member Function Documentation

◆ MaterialColorClone()

override RaTweenMaterialColorBase< Renderer > RaTweening.RaRenderer.RaTweenMaterialColor.MaterialColorClone ( )
protectedvirtual

◆ 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
enabledWhen True, it targets the shared material, else the instance material