RaTweening 1.0.0
Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | Protected Member Functions | List of all members
RaTweening.Core.RaTweenMaterialFloatBase< TargetT > Class Template Referenceabstract

A RaTweenDynamic<TargetT, ValueT> tween that is the base class that handles the logics of tweening the Float of a Material More...

Inheritance diagram for RaTweening.Core.RaTweenMaterialFloatBase< TargetT >:
RaTweening.RaTweenDynamic< TargetT, float >

Public Member Functions

 RaTweenMaterialFloatBase (TargetT target, string propertyName, float startValue, float endValue, float duration)
 
 RaTweenMaterialFloatBase (TargetT target, string propertyName, float endValue, float duration)
 
 RaTweenMaterialFloatBase (TargetT target, int propertyID, float startValue, float endValue, float duration)
 
 RaTweenMaterialFloatBase (TargetT target, int propertyID, float endValue, float duration)
 
RaTweenMaterialFloatBase< 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...
 
RaTweenMaterialFloatBase< 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...
 
- Public Member Functions inherited from RaTweening.RaTweenDynamic< TargetT, float >
 RaTweenDynamic (TargetT target, ValueT start, ValueT end, float duration)
 
 RaTweenDynamic (TargetT target, ValueT end, float duration)
 
RaTweenDynamic< TargetT, ValueT > From ()
 Makes it so the End value set within the tween becomes the start value And the start value becomes the value currently set within the target

‍Note: This method Disables SetStartDynamic(bool)

More...
 
RaTweenDynamic< TargetT, ValueT > SetStartValue (ValueT start)
 This API call Sets the start value of the tween.

‍Note: This makes it so the SetStartRef(TargetT) is cleared.
Note: This makes it so the SetStartDynamic(bool) is set to false

More...
 
RaTweenDynamic< TargetT, ValueT > SetStartRef (TargetT start)
 This API call Sets the start reference of the tween. The tween will copy the value from the reference to determine its start value at runtime. SetDynamicSetupStep(RaTweenDynamicSetupStep) to see when this value is calculated

‍Note: this makes it so the SetStartValue(ValueT) is cleared.
Note: This makes it so the SetStartDynamic(bool) is set to false

More...
 
RaTweenDynamic< TargetT, ValueT > SetEndValue (ValueT end)
 This API call Sets the end value of the tween.

‍Note: this makes it so the SetEndRef(TargetT) is cleared.

More...
 
RaTweenDynamic< TargetT, ValueT > SetEndRef (TargetT end)
 This API call Sets the end reference of the tween. The tween will copy the value from the reference to determine its end value at runtime. SetDynamicSetupStep(RaTweenDynamicSetupStep) to see when this value is calculated

‍Note: this makes it so the SetEndValue(ValueT) is cleared.

More...
 
RaTweenDynamic< TargetT, ValueT > SetTarget (TargetT target)
 This API call Sets target on which to apply the tween This target will be tweening from the start value to the end value More...
 
RaTweenDynamic< TargetT, ValueT > SetEndIsDelta (bool enabled=true)
 Makes it so the value set within the end value or reference is calculated as delta at runtime So an end value of 5 while the target is at value 20 would result in a final end value of 25. SetDynamicSetupStep(RaTweenDynamicSetupStep) to see when this value is calculated More...
 
RaTweenDynamic< TargetT, ValueT > SetStartDynamic (bool enabled=true)
 Makes it so the value set within the start value or reference is ignored and rather the value at which the object is at calculation time has is used as start value. SetDynamicSetupStep(RaTweenDynamicSetupStep) to see when this value is calculated More...
 
RaTweenDynamic< TargetT, ValueT > SetDynamicSetupStep (RaTweenDynamicSetupStep step)
 Determines when the SetStartDynamic(bool) and the SetEndIsDelta(bool) are calculated Read RaTweenDynamicSetupStep for the details on the calculation steps

‍Note: When set to RaTweenDynamicSetupStep.Start, it recalculates the values on each loop

More...
 

Static Public Attributes

const string DefaultFloatProperty = "_Glossiness"
 

Protected Member Functions

override void SetDefaultValues ()
 
override void DynamicEvaluation (float normalizedValue, TargetT target, float start, float end)
 
override RaTweenDynamic< TargetT, float > DynamicClone ()
 
override float ReadValue (TargetT reference)
 
override float GetEndByDelta (float start, float delta)
 
abstract RaTweenMaterialFloatBase< TargetT > MaterialFloatClone ()
 
abstract Material GetMaterial (TargetT target)
 
- Protected Member Functions inherited from RaTweening.RaTweenDynamic< TargetT, float >
abstract RaTweenDynamic< TargetT, ValueT > DynamicClone ()
 
abstract ValueT GetEndByDelta (ValueT start, ValueT delta)
 
abstract ValueT ReadValue (TargetT reference)
 
override void SetDefaultValues ()
 
override void ApplyRewind (bool resumeAfterRewind)
 
override RaTween RaTweenClone ()
 
override void OnSetup ()
 
override void OnStart ()
 
override void Evaluate (float normalizedValue)
 
override void Dispose ()
 
abstract void DynamicEvaluation (float normalizedValue, TargetT target, ValueT start, ValueT end)
 

Additional Inherited Members

- Properties inherited from RaTweening.RaTweenDynamic< TargetT, float >
TargetT Target [get]
 The Target to apply the value evaluation on
 
ValueT Start [get]
 The Value to start the Tween at (in which state it will begin)
 
ValueT End [get]
 The value to end the Tween to (in which state it will result)
 
override bool IsValid [get]
 

Detailed Description

A RaTweenDynamic<TargetT, ValueT> tween that is the base class that handles the logics of tweening the Float of a Material

Member Function Documentation

◆ DynamicClone()

override RaTweenDynamic< TargetT, float > RaTweening.Core.RaTweenMaterialFloatBase< TargetT >.DynamicClone ( )
protectedvirtual

◆ ReadValue()

override float RaTweening.Core.RaTweenMaterialFloatBase< TargetT >.ReadValue ( TargetT  reference)
protectedvirtual

◆ SetTargetProperty() [1/2]

RaTweenMaterialFloatBase< TargetT > RaTweening.Core.RaTweenMaterialFloatBase< 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)

Parameters
propertyIDThe ID of the property to affect with the Tween

◆ SetTargetProperty() [2/2]

RaTweenMaterialFloatBase< TargetT > RaTweening.Core.RaTweenMaterialFloatBase< 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.

Parameters
propertyNameThe name of the property to affect with the Tween