Class Tween<TTarget, TValue>
Concrete generic implementation of Tween.
Inheritance
System.Object
Tween<TTarget, TValue>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: cs.temp.dll.dll
Syntax
public class Tween<TTarget, TValue> : Tween where TTarget : class
Type Parameters
| Name |
Description |
| TTarget |
Type of the target object (needs to be a reference type)
|
| TValue |
Type of the target property
|
Fields
_diffValue
Declaration
protected TValue _diffValue
Field Value
_endValue
Declaration
protected TValue _endValue
Field Value
_hookCalculate
Declaration
protected ITweenArithmeticPlugin<TValue> _hookCalculate
Field Value
_hookCalculateUserData
Declaration
protected object _hookCalculateUserData
Field Value
| Type |
Description |
| System.Object |
|
_hookCalculateWeak
Declaration
protected bool _hookCalculateWeak
Field Value
| Type |
Description |
| System.Boolean |
|
_hookGet
Declaration
protected ITweenGetterPlugin<TTarget, TValue> _hookGet
Field Value
_hookGetUserData
Declaration
protected object _hookGetUserData
Field Value
| Type |
Description |
| System.Object |
|
_hookGetWeak
Declaration
protected bool _hookGetWeak
Field Value
| Type |
Description |
| System.Boolean |
|
_hookSet
Declaration
protected ITweenSetterPlugin<TTarget, TValue> _hookSet
Field Value
_hookSetUserData
Declaration
protected object _hookSetUserData
Field Value
| Type |
Description |
| System.Object |
|
_hookSetWeak
Declaration
protected bool _hookSetWeak
Field Value
| Type |
Description |
| System.Boolean |
|
_startValue
Declaration
protected TValue _startValue
Field Value
_target
Declaration
protected TTarget _target
Field Value
Properties
ArithmeticPlugin
Declaration
public override ITweenPlugin ArithmeticPlugin { get; }
Property Value
Overrides
DiffValue
Difference between start and end value of the tween (set when the tween is started).
Declaration
public TValue DiffValue { get; }
Property Value
EndValue
End value of the tween (set when the tween is started).
Declaration
public TValue EndValue { get; }
Property Value
GetterPlugin
Declaration
public override ITweenPlugin GetterPlugin { get; }
Property Value
Overrides
SetterPlugin
Declaration
public override ITweenPlugin SetterPlugin { get; }
Property Value
Overrides
StartValue
Start value of the tween (set when the tween is started).
Declaration
public TValue StartValue { get; }
Property Value
Target
Declaration
public override object Target { get; set; }
Property Value
| Type |
Description |
| System.Object |
|
Overrides
TargetType
Declaration
public override Type TargetType { get; }
Property Value
| Type |
Description |
| System.Type |
|
Overrides
Value
Current value of the target property.
Declaration
public TValue Value { get; set; }
Property Value
ValueType
Declaration
public override Type ValueType { get; }
Property Value
| Type |
Description |
| System.Type |
|
Overrides
Methods
ApplyValue(Single)
Declaration
protected override void ApplyValue(float position)
Parameters
| Type |
Name |
Description |
| System.Single |
position |
|
Overrides
LoadPlugins()
Declaration
protected override bool LoadPlugins()
Returns
| Type |
Description |
| System.Boolean |
|
Overrides
PrepareValues()
Declaration
protected override void PrepareValues()
Overrides
Reset()
Declaration
public override void Reset()
Overrides
ToString()
Declaration
public override string ToString()
Returns
| Type |
Description |
| System.String |
|
Overrides
System.Object.ToString()
Use(TweenMethod, TTarget, Single, String, TValue, TValue, TValue, TweenOptions)
Declaration
public void Use(TweenMethod tweenMethod, TTarget target, float duration, string property, TValue startValue, TValue endValue, TValue diffValue, TweenOptions parentOptions)
Parameters
| Type |
Name |
Description |
| TweenMethod |
tweenMethod |
|
| TTarget |
target |
|
| System.Single |
duration |
|
| System.String |
property |
|
| TValue |
startValue |
|
| TValue |
endValue |
|
| TValue |
diffValue |
|
| TweenOptions |
parentOptions |
|