Interface ITweenEngine
The tween engine drives the tweens and interfaces with the host environment.
Assembly: cs.temp.dll.dll
Syntax
public interface ITweenEngine
Properties
Options
The global options instance.
Declaration
TweenOptions Options { get; }
Property Value
See Also
Pool
The pool used for pooling tweens and groups.
Declaration
TweenPool Pool { get; set; }
Property Value
SinglesGroup
The group containing the tweens started by the
To<TTarget, TValue>(TTarget, Single, String, TValue), From<TTarget, TValue>(TTarget, Single, String, TValue),
FromTo<TTarget, TValue>(TTarget, Single, String, TValue, TValue) and By<TTarget, TValue>(TTarget, Single, String, TValue) methods.
Declaration
TweenGroup<object> SinglesGroup { get; }
Property Value
Methods
Cancel(Object, String)
Declaration
void Cancel(object target, string property = null)
Parameters
Type |
Name |
Description |
System.Object |
target |
|
System.String |
property |
|
See Also
Create<TTarget, TValue>(TweenMethod, TTarget, Single, String, TValue, TValue, TValue, TweenOptions)
Generic tween creation method.
Declaration
Tween<TTarget, TValue> Create<TTarget, TValue>(TweenMethod tweenMethod, TTarget target, float duration, string property, TValue startValue, TValue endValue, TValue diffValue, TweenOptions parentOptions = null)
where TTarget : class
Parameters
Type |
Name |
Description |
TweenMethod |
tweenMethod |
|
TTarget |
target |
|
System.Single |
duration |
|
System.String |
property |
|
TValue |
startValue |
|
TValue |
endValue |
|
TValue |
diffValue |
|
TweenOptions |
parentOptions |
|
Returns
Type |
Description |
Tween<TTarget, TValue> |
|
Type Parameters
Name |
Description |
TTarget |
|
TValue |
|
Finish(Object, String)
Declaration
void Finish(object target, string property = null)
Parameters
Type |
Name |
Description |
System.Object |
target |
|
System.String |
property |
|
See Also
Has(Object, String)
Declaration
bool Has(object target, string property = null)
Parameters
Type |
Name |
Description |
System.Object |
target |
|
System.String |
property |
|
Returns
Type |
Description |
System.Boolean |
|
See Also
LoadDynamicPlugins<TTarget, TValue>(Tween<TTarget, TValue>)
Internal method called by Tween to load non-static plugins.
Declaration
void LoadDynamicPlugins<TTarget, TValue>(Tween<TTarget, TValue> tween)
where TTarget : class
Parameters
Type |
Name |
Description |
Tween<TTarget, TValue> |
tween |
|
Type Parameters
Name |
Description |
TTarget |
|
TValue |
|
Overwrite(Tween)
Internal method called by Tween to do overwriting of tweens.
Declaration
void Overwrite(Tween tween)
Parameters
Type |
Name |
Description |
Tween |
tween |
|
RegisterGroup(TweenGroup)
Register a new group with the engine.
Declaration
void RegisterGroup(TweenGroup tweenGroup)
Parameters
Stop(Object, String)
Declaration
void Stop(object target, string property = null)
Parameters
Type |
Name |
Description |
System.Object |
target |
|
System.String |
property |
|
See Also
See Also