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
- Transition
<ClipState>
- Derived Types
graph BT
Type-->Base0["Transition<ClipState>"]
Base0-->Base1["Object"]
Type-.->Interface0["ITransition<ClipState>"]
Type-.->Interface1["ITransitionDetailed"]
click Interface1 "/animancer/api/Animancer/ITransitionDetailed"
Type-.->Interface2["ITransitionWithEvents"]
click Interface2 "/animancer/api/Animancer/ITransitionWithEvents"
Type-.->Interface3["ITransition"]
click Interface3 "/animancer/api/Animancer/ITransition"
Type-.->Interface4["IHasKey"]
click Interface4 "/animancer/api/Animancer/IHasKey"
Type-.->Interface5["IPolymorphic"]
click Interface5 "/animancer/api/Animancer/IPolymorphic"
Type-.->Interface6["IHasEvents"]
click Interface6 "/animancer/api/Animancer/IHasEvents"
Type-.->Interface7["ICopyable<Transition<ClipState>>"]
Type-.->Interface8["ICloneable<Transition<ClipState>>"]
Type-.->Interface9["IMotion"]
click Interface9 "/animancer/api/Animancer/IMotion"
Type-.->Interface10["IAnimationClipCollection"]
click Interface10 "/animancer/api/Animancer/IAnimationClipCollection"
Type-.->Interface11["ICopyable<ClipTransition>"]
Type["ClipTransition"]
class Type type-node
Derived0["ClipTransitionSequence"]-->Type
click Derived0 "/animancer/api/Animancer/ClipTransitionSequence"
Derived1["NamedClipTransition"]-->Type
click Derived1 "/animancer/api/Animancer.Samples.Layers/NamedClipTransition"
Derived2["DirectionalClipTransition"]-->Type
click Derived2 "/animancer/api/Animancer/DirectionalClipTransition"
Syntax
[Serializable]
public class ClipTransition : Transition<ClipState>, ITransition<ClipState>, ITransitionDetailed,
ITransitionWithEvents, ITransition, IHasKey, IPolymorphic, IHasEvents,
ICopyable<Transition<ClipState>>, ICloneable<Transition<ClipState>>, IMotion,
IAnimationClipCollection, ICopyable<ClipTransition>
Remarks
Documentation:
Transitions
Attributes
Type | Description |
---|---|
Serializable |
Fields
Name | Constant Value | Summary |
---|---|---|
ClipFieldName | _Clip |
The name of the serialized backing field of
Animancer.ClipTransition.Clip .static
|
Properties
Name | Value | Summary |
---|---|---|
AverageAngularSpeed | float |
The initial
UnityEngine.Motion.averageAngularSpeed that the created state will have. |
AverageVelocity | Vector3 |
The initial
UnityEngine.Motion.averageSpeed that the created state will have. |
Clip | AnimationClip |
[
UnityEngine.SerializeField ] The animation to play. |
FadeMode | FadeMode |
If this transition will set the
Animancer.AnimancerState.Time , then it needs to use
Animancer.FadeMode.FromStart .
|
IsLooping | bool |
[
Animancer.ITransitionDetailed ] Is the Animancer.ClipTransition.Clip looping? |
IsValid | bool |
Can this transition create a valid
Animancer.AnimancerState ? |
Length | float |
The length of the
Animancer.ClipTransition.Clip (in seconds), accounting for the Animancer.ClipTransition.NormalizedStartTime and
Animancer.AnimancerEvent.Sequence.NormalizedEndTime (but not Speed ).
|
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).
|
NormalizedStartTime | float |
The
Animancer.AnimancerState.NormalizedTime to start the animation at. |
Methods
Name | Value | Summary |
---|---|---|
Apply |
void |
Applies the details of this transition to the `state`.
|
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.
|
CopyFrom |
void |
Copies the contents of `copyFrom` into this object, replacing its previous contents.
|
CreateState |
ClipState |
Creates and returns a new TState.
|
GatherAnimationClips |
void |
[
Animancer.IAnimationClipCollection ] Adds the Animancer.ClipTransition.Clip to the collection. |
TryCreateTransition |
ITransitionDetailed |
Returns a new
Animancer.ClipTransition
if the `target` is an UnityEngine.AnimationClip .
static
|