Summary
[Editor-Only] Utility for playing through transition previews.
- Assembly
- Animancer
.dll - Namespace
- Animancer
.Editor .Previews - Interfaces
-
- IDisposable
- Base Types
-
- Object
graph BT
Type-->Base0["Object"]
Type-.->Interface0["IDisposable"]
Type["TransitionPreviewPlayer"]
class Type type-node
Syntax
[Serializable]
public class TransitionPreviewPlayer : IDisposable
Attributes
Type | Description |
---|---|
Serializable |
Properties
Name | Value | Summary |
---|---|---|
CurrentTime | float |
The amount of time that has passed since the
Animancer.Editor.Previews.TransitionPreviewPlayer.ToTransition started (in seconds). |
FadeDuration | float |
The
Animancer.ITransition.FadeDuration . |
FromDuration | float |
The minimum amount of time to play the
Animancer.Editor.Previews.TransitionPreviewPlayer.FromTransition
before the Animancer.Editor.Previews.TransitionPreviewPlayer.ToTransition starts (in seconds).
|
FromTransition | ITransition |
The animation to play first.
|
Graph | AnimancerGraph |
The graph used to play the animations.
|
IsPlaying | bool |
Is the preview currently playing?
|
MaxTime | float |
The highest allowed
Animancer.Editor.Previews.TransitionPreviewPlayer.CurrentTime . |
MinTime | float |
The lowest allowed
Animancer.Editor.Previews.TransitionPreviewPlayer.CurrentTime . |
NormalizedTime | float |
The amount of time that has passed since the
Animancer.Editor.Previews.TransitionPreviewPlayer.ToTransition started (normalized). |
Speed | float |
The speed at which the preview plays.
|
ToDuration | float |
The minimum amount of time to continue playing
after the
Animancer.Editor.Previews.TransitionPreviewPlayer.ToTransition started (in seconds).
|
ToTransition | ITransition |
The animation to transition into.
|
Methods
Name | Value | Summary |
---|---|---|
Dispose |
void |
Cleans up this player.
|
Inverse |
float |
Converts seconds to normalized time.
|
LerpTimeUnclamped |
float |
Converts normalized time to seconds.
|
Recalculate |
void |
Recalculated the
Animancer.Editor.Previews.TransitionPreviewPlayer.MinTime and Animancer.Editor.Previews.TransitionPreviewPlayer.MaxTime . |