Summary
A serializable
Animancer.ITransition which can create a particular type of Animancer.AnimancerState
when passed into Animancer.AnimancerLayer.Play(Animancer.ITransition).
- Assembly
- Animancer
.dll - Namespace
- Animancer
- Interfaces
- Base Types
-
- Object
- Derived Types
graph BT
Type-->Base0["Object"]
Type-.->Interface0["IPolymorphic"]
click Interface0 "/animancer-v7-4/api/Animancer/IPolymorphic"
Type-.->Interface1["ITransition<TState>"]
Type-.->Interface2["ITransitionDetailed"]
click Interface2 "/animancer-v7-4/api/Animancer/ITransitionDetailed"
Type-.->Interface3["ITransitionWithEvents"]
click Interface3 "/animancer-v7-4/api/Animancer/ITransitionWithEvents"
Type-.->Interface4["ITransition"]
click Interface4 "/animancer-v7-4/api/Animancer/ITransition"
Type-.->Interface5["IHasKey"]
click Interface5 "/animancer-v7-4/api/Animancer/IHasKey"
Type-.->Interface6["IHasEvents"]
click Interface6 "/animancer-v7-4/api/Animancer/IHasEvents"
Type-.->Interface7["ICopyable<Transition<TState>>"]
Type-.->Interface8["ICloneable<Transition<TState>>"]
Type["Transition<TState>"]
class Type type-node
Derived0["PlayableAssetTransition"]-->Type
click Derived0 "/animancer-v7-4/api/Animancer/PlayableAssetTransition"
Derived1["ManualMixerTransition<TMixer>"]-->Type
click Derived1 "/animancer-v7-4/api/Animancer/ManualMixerTransition_1"
Derived2["ControllerTransition<TState>"]-->Type
click Derived2 "/animancer-v7-4/api/Animancer/ControllerTransition_1"
Derived3["ClipTransition"]-->Type
click Derived3 "/animancer-v7-4/api/Animancer/ClipTransition"
Syntax
[Serializable]
public abstract class Transition<TState> : IPolymorphic, ITransition<TState>, ITransitionDetailed,
ITransitionWithEvents, ITransition, IHasKey, IHasEvents, ICopyable<Transition<TState>>,
ICloneable<Transition<TState>>
where TState : AnimancerState
Remarks
Documentation: Transitions
Attributes
| Type | Description |
|---|---|
| Serializable |
Type Parameters
| Name | Description |
|---|---|
| TState |
Properties
| Name | Value | Summary |
|---|---|---|
| BaseState | AnimancerState |
The state that was created by this object. Specifically, this is the state that was most recently
passed into
Animancer.Transition`1.Apply(Animancer.AnimancerState) (usually by AnimancerGraph.Play(ITransition)).
You can use Animancer.AnimancerStateDictionary.GetOrCreate(Animancer.ITransition) or
Animancer.AnimancerLayer.GetOrCreateState(Animancer.ITransition) to get or create the state for a
specific object.
Animancer.Transition`1.State is simply a shorthand for casting this to TState.
|
| Events | AnimancerEvent |
Events which will be triggered as the animation plays.
|
| FadeDuration | float |
The amount of time this transition should take (in seconds).
|
| FadeMode | FadeMode |
The
Animancer.FadeMode which should be used when this transition is passed into
Animancer.AnimancerLayer.Play(Animancer.ITransition).
|
| IsLooping | bool |
What will the value of
Animancer.AnimancerState.IsLooping be for the created state? |
| IsValid | bool |
Can this transition create a valid
Animancer.AnimancerState? |
| Key | Object |
The
Animancer.AnimancerState.Key which the created state will be registered with. |
| MainObject | Object |
The
Animancer.AnimancerState.MainObject that the created state will have. |
| MaximumDuration | float |
The maximum amount of time the animation is expected to take (in seconds).
|
| Name | string |
The display name of this transition.
|
| NormalizedStartTime | float |
The
Animancer.AnimancerState.NormalizedTime to start the animation at. |
| SerializedEvents | AnimancerEvent |
Events which will be triggered as the animation plays.
|
| Speed | float |
[
UnityEngine.SerializeField]
Determines how fast the animation plays (1x = normal speed, 2x = double speed).
|
| State | TState |
The state that was created by this object. Specifically, this is the state that was most recently
passed into
Animancer.Transition`1.Apply(Animancer.AnimancerState) (usually by AnimancerGraph.Play(ITransition)).
|
Methods
| Name | Value | Summary |
|---|---|---|
| Apply |
void |
Called by
Animancer.AnimancerLayer.Play(Animancer.ITransition) to apply any modifications to the `state`.
|
| Apply |
void |
Applies the `normalizedStartTime` to the `state`.
static
|
| Clone |
Transition |
Creates a new object with the same type and values this.
|
| CopyFrom |
void |
Copies the contents of `copyFrom` into this object, replacing its previous contents.
|
| Create |
TState |
Calls
Animancer.Transition`1.CreateState and assigns the Animancer.Transition`1.Events to the state. |
| CreateState |
TState |
Creates and returns a new TState.
|
| ToString |
string |
Returns the
Animancer.Transition`1.Name and type of this transition. |