Show / Hide Table of Contents

Class Tween<TTarget, TValue>

Concrete generic implementation of Tween.

Inheritance
System.Object
TweenOptionsContainer
Tween
Tween<TTarget, TValue>
Inherited Members
Tween.State
Tween.Error
Tween.CompletedBy
Tween.CreationTime
Tween.StartTime
Tween.StartTimeUnscaled
Tween.DurationUnscaled
Tween.TweenTime
Tween.TweenEngine
Tween.TweenMethod
Tween.Property
Tween.Stop()
Tween.Finish()
Tween.Cancel()
Tween.Overlaps(Tween)
Tween.WaitForEndOfTween()
Tween.WaitFOrEndOfTWeenCoroutine()
Tween.ReturnToPool()
Tween.Validate(Boolean)
Tween.PropertyOptions
Tween._engine
Tween._tweenMethod
Tween._property
Tween._options
Tween._state
Tween._error
Tween._completedBy
Tween._creationTime
Tween._creationTimeUnscaled
Tween._creationTimeReal
Tween._startTime
Tween._validated
Tween._valuesPrepared
Tween._oneOverDuration
Tween._targetIsUnityObject
Tween._targetUnityObject
Tween._targetIsUnityRef
Tween._targetUnityReference
Tween._timing
Tween._triggerUpdate
Tween.Fail(String, Object[])
Tween.Fail(TweenLogLevel, String, Object[])
Tween.DoOverwrite()
Tween.GetPluginOverride(Boolean, Boolean)
Tween.Initialize()
Tween.Start()
Tween.Complete(TweenCompletedBy, Boolean)
TweenOptionsContainer.Options
TweenOptionsContainer.RetainCount
TweenOptionsContainer._retainCount
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)
Namespace: Sttz.Tweener
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

Remarks

You don't normally need to interact with this subtype. Refer to Tween or the helper methods on Animate instead.

Fields

_diffValue

Declaration
protected TValue _diffValue
Field Value
Type Description
TValue

_endValue

Declaration
protected TValue _endValue
Field Value
Type Description
TValue

_hookCalculate

Declaration
protected ITweenArithmeticPlugin<TValue> _hookCalculate
Field Value
Type Description
ITweenArithmeticPlugin<TValue>

_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
Type Description
ITweenGetterPlugin<TTarget, TValue>

_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
Type Description
ITweenSetterPlugin<TTarget, TValue>

_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
Type Description
TValue

_target

Declaration
protected TTarget _target
Field Value
Type Description
TTarget

Properties

ArithmeticPlugin

Declaration
public override ITweenPlugin ArithmeticPlugin { get; }
Property Value
Type Description
ITweenPlugin
Overrides
Tween.ArithmeticPlugin

DiffValue

Difference between start and end value of the tween (set when the tween is started).

Declaration
public TValue DiffValue { get; }
Property Value
Type Description
TValue

EndValue

End value of the tween (set when the tween is started).

Declaration
public TValue EndValue { get; }
Property Value
Type Description
TValue

GetterPlugin

Declaration
public override ITweenPlugin GetterPlugin { get; }
Property Value
Type Description
ITweenPlugin
Overrides
Tween.GetterPlugin

SetterPlugin

Declaration
public override ITweenPlugin SetterPlugin { get; }
Property Value
Type Description
ITweenPlugin
Overrides
Tween.SetterPlugin

StartValue

Start value of the tween (set when the tween is started).

Declaration
public TValue StartValue { get; }
Property Value
Type Description
TValue

Target

Declaration
public override object Target { get; set; }
Property Value
Type Description
System.Object
Overrides
Tween.Target

TargetType

Declaration
public override Type TargetType { get; }
Property Value
Type Description
System.Type
Overrides
Tween.TargetType

Value

Current value of the target property.

Declaration
public TValue Value { get; set; }
Property Value
Type Description
TValue

ValueType

Declaration
public override Type ValueType { get; }
Property Value
Type Description
System.Type
Overrides
Tween.ValueType

Methods

ApplyValue(Single)

Declaration
protected override void ApplyValue(float position)
Parameters
Type Name Description
System.Single position
Overrides
Tween.ApplyValue(Single)

LoadPlugins()

Declaration
protected override bool LoadPlugins()
Returns
Type Description
System.Boolean
Overrides
Tween.LoadPlugins()

PrepareValues()

Declaration
protected override void PrepareValues()
Overrides
Tween.PrepareValues()

Reset()

Declaration
public override void Reset()
Overrides
Tween.Reset()

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
Back to top © 2018 Adrian Stutz