Describes a sequence for use with TpTweener.
More...
|
| long | Id [get, set] |
| | Identifier. 0 means 'invalid' as it's never used as an Id.
|
| bool | IsGameObjectSequence [get, set] |
| | Can't mix tile and GameObject tweens.
|
| string | SName = "" [get, set] |
| | Name of the sequence.
|
| int | NumLoops = -1 [get, set] |
| | How many loops? -1 means forever.
|
| float | SequenceStartTime [get, set] |
| | Start time of the sequence: Diags only.
|
| TilePlusBase? | ParentTile [get, set] |
| | the tile which created this sequence.
|
| int | CurrentLoopCount = 0 [get, set] |
| | loop count: set internally
|
| Action< TpTweenSequence, bool >? | OnFinished [get, set] |
| | Callback when finished. The bool param is true if the sequence is actually ending or false if the loop is about to repeat.
|
| Action< TpTweenSequence, TpTween >? | OnNextTween [get, set] |
| | Callback when this sequence advances to the next state.
|
| List< TpTween > | SequencedTweens [get] |
| | List of tweens in this sequence.
|
| bool | IsLooping [get] |
| | Is this sequence looping?
|
| bool | IsEmpty [get] |
| | Is this sequence empty?
|
| bool | IsRunning [get, set] |
| | Is this sequence running?
|
| TpTween? | PreviousTween [get] |
| | Get a ref to the previous tween.
|
| TpTween? | CurrentTween [get, set] |
| | Get a ref to the current tween and make the current tween into the previous tween.
|
Describes a sequence for use with TpTweener.
◆ AddTo()
| bool TilePlus.TpTweenSequence.AddTo |
( |
TpTween | tween | ) |
|
Add a tween to the sequence.
- Parameters
-
- Returns
- false if any error
◆ ClearPrevious()
| void TilePlus.TpTweenSequence.ClearPrevious |
( |
| ) |
|
Clear the previous tween ref.
◆ GetTweenWithId()
| TpTween? TilePlus.TpTweenSequence.GetTweenWithId |
( |
long | id | ) |
|
Find a tween in the sequence by its id.
- Parameters
-
- Returns
- Tween or null if not found.
◆ ReleaseTweens()
| void TilePlus.TpTweenSequence.ReleaseTweens |
( |
IEnumerable< TpTween > | tweens, |
|
|
bool | final = false ) |
Return all tweens to pool.
- Parameters
-
| tweens | array of tweens |
| final | only set true for final release ie when seq is returned to the pool. |
inheritdoc/>
◆ ResetSequence()
| void TilePlus.TpTweenSequence.ResetSequence |
( |
| ) |
|
◆ Rewind()
| void TilePlus.TpTweenSequence.Rewind |
( |
| ) |
|
For looping: Rewind the loop.
◆ SetSize()
| bool TilePlus.TpTweenSequence.SetSize |
( |
int | size | ) |
|
Resize the tween list for this sequence.
- Parameters
-
- Returns
- flase if the list of tweens was never initialized.
◆ ToString()
| override string TilePlus.TpTweenSequence.ToString |
( |
| ) |
|
◆ CurrentLoopCount
| int TilePlus.TpTweenSequence.CurrentLoopCount = 0 |
|
getset |
loop count: set internally
◆ CurrentTween
| TpTween? TilePlus.TpTweenSequence.CurrentTween |
|
getset |
Get a ref to the current tween and make the current tween into the previous tween.
◆ Id
| long TilePlus.TpTweenSequence.Id |
|
getset |
Identifier. 0 means 'invalid' as it's never used as an Id.
◆ IsEmpty
| bool TilePlus.TpTweenSequence.IsEmpty |
|
get |
◆ IsGameObjectSequence
| bool TilePlus.TpTweenSequence.IsGameObjectSequence |
|
getset |
Can't mix tile and GameObject tweens.
◆ IsLooping
| bool TilePlus.TpTweenSequence.IsLooping |
|
get |
Is this sequence looping?
◆ IsRunning
| bool TilePlus.TpTweenSequence.IsRunning |
|
getset |
Is this sequence running?
◆ NumLoops
| int TilePlus.TpTweenSequence.NumLoops = -1 |
|
getset |
How many loops? -1 means forever.
◆ OnFinished
Callback when finished. The bool param is true if the sequence is actually ending or false if the loop is about to repeat.
◆ OnNextTween
Callback when this sequence advances to the next state.
◆ ParentTile
the tile which created this sequence.
◆ PreviousTween
| TpTween? TilePlus.TpTweenSequence.PreviousTween |
|
get |
Get a ref to the previous tween.
◆ SequencedTweens
| List<TpTween> TilePlus.TpTweenSequence.SequencedTweens |
|
get |
List of tweens in this sequence.
◆ SequenceStartTime
| float TilePlus.TpTweenSequence.SequenceStartTime |
|
getset |
Start time of the sequence: Diags only.
◆ SName
| string TilePlus.TpTweenSequence.SName = "" |
|
getset |
The documentation for this class was generated from the following file:
- /Users/jms/Documents/Tpt_55/TPT55/Assets/Plugins/TilePlus/Runtime/Services/Tweener/TpTweenSequence.cs