Class Tween
Inheritance
System.Object
Tween
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.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: cs.temp.dll.dll
Syntax
public abstract class Tween : TweenOptionsContainer
Fields
_completedBy
Declaration
protected TweenCompletedBy _completedBy
Field Value
_creationTime
Declaration
protected float _creationTime
Field Value
Type |
Description |
System.Single |
|
_creationTimeReal
Declaration
protected float _creationTimeReal
Field Value
Type |
Description |
System.Single |
|
_creationTimeUnscaled
Declaration
protected float _creationTimeUnscaled
Field Value
Type |
Description |
System.Single |
|
_engine
Declaration
protected ITweenEngine _engine
Field Value
_error
Declaration
Field Value
Type |
Description |
System.String |
|
_oneOverDuration
Declaration
protected float _oneOverDuration
Field Value
Type |
Description |
System.Single |
|
_options
Declaration
protected string _options
Field Value
Type |
Description |
System.String |
|
_property
Declaration
protected string _property
Field Value
Type |
Description |
System.String |
|
_startTime
Declaration
protected float _startTime
Field Value
Type |
Description |
System.Single |
|
_state
Declaration
protected TweenState _state
Field Value
_targetIsUnityObject
Declaration
protected bool _targetIsUnityObject
Field Value
Type |
Description |
System.Boolean |
|
_targetIsUnityRef
Declaration
protected bool _targetIsUnityRef
Field Value
Type |
Description |
System.Boolean |
|
_targetUnityObject
Declaration
protected UnityEngine.Object _targetUnityObject
Field Value
Type |
Description |
UnityEngine.Object |
|
_targetUnityReference
Declaration
protected UnityEngine.TrackedReference _targetUnityReference
Field Value
Type |
Description |
UnityEngine.TrackedReference |
|
_timing
Declaration
protected TweenTiming _timing
Field Value
_triggerUpdate
Declaration
protected bool _triggerUpdate
Field Value
Type |
Description |
System.Boolean |
|
_tweenMethod
Declaration
protected TweenMethod _tweenMethod
Field Value
_validated
Declaration
protected bool _validated
Field Value
Type |
Description |
System.Boolean |
|
_valuesPrepared
Declaration
protected bool _valuesPrepared
Field Value
Type |
Description |
System.Boolean |
|
Properties
ArithmeticPlugin
The arithmetic plugin being used.
Declaration
public abstract ITweenPlugin ArithmeticPlugin { get; }
Property Value
CompletedBy
Explains how the tween was completed.
Declaration
public TweenCompletedBy CompletedBy { get; }
Property Value
See Also
CreationTime
The time the tween was created (in the tween's time).
Declaration
public float CreationTime { get; }
Property Value
Type |
Description |
System.Single |
|
See Also
DurationUnscaled
Duration of the tween, in unscaled time.
Declaration
public float DurationUnscaled { get; }
Property Value
Type |
Description |
System.Single |
|
See Also
Error
When an error occurred (State is set to Error), this
property contains an error description.
Declaration
public string Error { get; }
Property Value
Type |
Description |
System.String |
|
GetterPlugin
The getter plugin being used.
Declaration
public abstract ITweenPlugin GetterPlugin { get; }
Property Value
Property
Name of the target property on the target object.
Declaration
public string Property { get; }
Property Value
Type |
Description |
System.String |
|
PropertyOptions
Parse the options in the property name in the format
":options:propertyName".
Declaration
public string PropertyOptions { get; }
Property Value
Type |
Description |
System.String |
|
SetterPlugin
The setter plugin being used.
Declaration
public abstract ITweenPlugin SetterPlugin { get; }
Property Value
StartTime
The time the tween will be or was started (in the tween's time).
Declaration
public float StartTime { get; }
Property Value
Type |
Description |
System.Single |
|
See Also
StartTimeUnscaled
Time the tween will be or was started, in unscaled time.
Declaration
public float StartTimeUnscaled { get; }
Property Value
Type |
Description |
System.Single |
|
State
Current state of the tween.
Declaration
public TweenState State { get; }
Property Value
Target
Target object the tweened property is located on.
Declaration
public abstract object Target { get; set; }
Property Value
Type |
Description |
System.Object |
|
Exceptions
Type |
Condition |
System.InvalidCastException |
Thrown when the object's type does not match the tween's target type.
|
TargetType
Type of the target the value is tweened on.
Declaration
public abstract Type TargetType { get; }
Property Value
Type |
Description |
System.Type |
|
TweenEngine
The tween engine used for this tween.
Declaration
public ITweenEngine TweenEngine { get; set; }
Property Value
TweenMethod
Method of the tween (To, From, FromTo or By).
Declaration
public TweenMethod TweenMethod { get; }
Property Value
TweenTime
Declaration
public float TweenTime { get; }
Property Value
Type |
Description |
System.Single |
|
See Also
ValueType
Type of tweened value of the tween.
Declaration
public abstract Type ValueType { get; }
Property Value
Type |
Description |
System.Type |
|
Methods
ApplyValue(Single)
Declaration
protected abstract void ApplyValue(float position)
Parameters
Type |
Name |
Description |
System.Single |
position |
|
Cancel()
Cancel the tween (set the property to its start value).
Declaration
Complete(TweenCompletedBy, Boolean)
Declaration
protected void Complete(TweenCompletedBy completedBy, bool fromOverwrite = false)
Parameters
DoOverwrite()
Declaration
protected void DoOverwrite()
Fail(TweenLogLevel, String, Object[])
Declaration
protected void Fail(TweenLogLevel level, string message, params object[] args)
Parameters
Type |
Name |
Description |
TweenLogLevel |
level |
|
System.String |
message |
|
System.Object[] |
args |
|
Fail(String, Object[])
Declaration
protected void Fail(string message, params object[] args)
Parameters
Type |
Name |
Description |
System.String |
message |
|
System.Object[] |
args |
|
Finish()
Finish the tween (set the property to its end value).
Declaration
GetPluginOverride(Boolean, Boolean)
Declaration
protected int GetPluginOverride(bool installedWeak, bool overwriterWeak)
Parameters
Type |
Name |
Description |
System.Boolean |
installedWeak |
|
System.Boolean |
overwriterWeak |
|
Returns
Type |
Description |
System.Int32 |
|
Initialize()
Declaration
protected void Initialize()
LoadPlugins()
Load the tween's plugins.
Declaration
protected abstract bool LoadPlugins()
Returns
Type |
Description |
System.Boolean |
|
Overlaps(Tween)
Check if two tween's durations overlap (without start delay).
Declaration
public bool Overlaps(Tween other)
Parameters
Type |
Name |
Description |
Tween |
other |
Tween to check against this tween
|
Returns
Type |
Description |
System.Boolean |
Wether the tween's durations overlap
|
PrepareValues()
Declaration
protected abstract void PrepareValues()
Reset()
Reset the tween so that it can be used again.
Declaration
public virtual void Reset()
ReturnToPool()
Declaration
protected override void ReturnToPool()
Overrides
Start()
Declaration
Stop()
Stop the tween (leave the property at its current value).
Declaration
Validate(Boolean)
Trigger the validation of the tween and optionally force
it to be rendered.
Declaration
public bool Validate(bool forceRender = false)
Parameters
Type |
Name |
Description |
System.Boolean |
forceRender |
Forces the tween to render (set its target property to the initial
value) after it has been validated.
|
Returns
Type |
Description |
System.Boolean |
|
WaitForEndOfTween()
Create a coroutine that will wait until the tween has completed.
Declaration
public Coroutine WaitForEndOfTween()
Returns
Type |
Description |
Coroutine |
A coroutine you can yield in one of your own to wait until
the tween has completed.
|
See Also
WaitFOrEndOfTWeenCoroutine()
Declaration
protected IEnumerator WaitFOrEndOfTWeenCoroutine()
Returns
Type |
Description |
IEnumerator |
|