Summary
[Pro-Only]
A library of
Animancer.ITransitions which allows specific
transition combinations to be overridden without needing to be hard coded.
- Assembly
- Animancer
.dll - Namespace
- Animancer
.TransitionLibraries - Interfaces
- Base Types
-
- Object
graph BT
Type-->Base0["Object"]
Type-.->Interface0["IAnimationClipCollection"]
click Interface0 "/animancer/api/Animancer/IAnimationClipCollection"
Type-.->Interface1["ICopyable<TransitionLibrary>"]
Type["TransitionLibrary"]
class Type type-node
Syntax
public class TransitionLibrary : IAnimationClipCollection, ICopyable<TransitionLibrary>
Remarks
Documentation:
Transition Libraries
Properties
| Name | Value | Summary |
|---|---|---|
| AliasCount | int |
[Pro-Only] The number of transitions in this library plus any additional aliases.
|
| Count | int |
[Pro-Only] The number of transitions in this library.
|
Methods
| Name | Value | Summary |
|---|---|---|
| AddAlias |
Transition |
[Pro-Only] Registers the `transition` with the `key`.
|
| AddAlias |
void |
[Pro-Only] Registers the `group` with another `key`.
|
| AddLibrary |
void |
[Pro-Only] Adds the contents of `copyFrom` into this library.
|
| AddLibrary |
void |
[Pro-Only] Adds the contents of `copyFrom` into this library.
|
| AddTransition |
Transition |
[Pro-Only] Adds the `transition` to this library.
|
| AddTransition |
Transition |
[Pro-Only] Adds the `transition` to this library.
|
| AddTransition |
Transition |
[Pro-Only] Adds the `transition` to this library.
|
| Clear |
void |
[Pro-Only] Removes everything from this library, leaving it empty.
|
| ContainsKey |
bool |
[Pro-Only]
Does this library contain a transition registered with the
Animancer.IHasKey.Key?
|
| ContainsKey |
bool |
[Pro-Only]
Does this library contain a transition registered with the `key`?
|
| CopyFrom |
void |
Copies the contents of `copyFrom` into this object, replacing its previous contents.
|
| GatherAnimationClips |
void |
[Pro-Only] Gathers all the animations in this library.
|
| GetFadeDuration |
float |
[Pro-Only]
Returns the fade duration to use when transitioning from the
Animancer.AnimancerLayer.CurrentState to the `transition`.
|
| GetFadeDuration |
float |
[Pro-Only]
Returns the fade duration to use when transitioning from the
Animancer.AnimancerLayer.CurrentState to the `key`.
|
| GetFadeDuration |
float |
[Pro-Only]
Returns the fade duration to use when transitioning from `from` to the `transition`.
|
| GetFadeDuration |
float |
[Pro-Only]
Returns the fade duration to use when transitioning from `from` to the `transition`.
|
| IndexOf |
int |
[Pro-Only]
Finds the
Animancer.TransitionLibraries.TransitionModifierGroup.Index of the group registered with the `key`
or returns -1.
|
| IndexOf |
int |
[Pro-Only]
Finds the
Animancer.TransitionLibraries.TransitionModifierGroup.Index of the group registered with the `key`
or returns -1.
|
| Initialize |
void |
[Pro-Only] Adds the contents of the `definition` to this library.
|
| Play |
AnimancerState |
Calls
Animancer.AnimancerLayer.Play(Animancer.ITransition,System.Single,Animancer.FadeMode)
with the fade duration potentially modified by this library.
|
| Play |
AnimancerState |
Calls
Animancer.AnimancerLayer.Play(Animancer.ITransition,System.Single,Animancer.FadeMode)
with the fade duration potentially modified by this library.
|
| RemoveFadeDuration |
bool |
[Pro-Only] Removes a modified fade duration for transitioning from `from` to `to`.
|
| RemoveFadeDuration |
bool |
[Pro-Only] Removes a modified fade duration for transitioning from `from` to `to`.
|
| RemoveTransition |
bool |
[Pro-Only] Removes the transition registered with the
Animancer.IHasKey.Key. |
| RemoveTransition |
bool |
[Pro-Only] Removes the transition registered with the `key`.
|
| SetFadeDuration |
void |
[Pro-Only]
Sets the
Animancer.ITransition.FadeDuration to use when transitioning from `from` to `to`.
|
| SetFadeDuration |
void |
[Pro-Only]
Sets the
Animancer.ITransition.FadeDuration to use when transitioning from `from` to `to`.
|
| SetFadeDuration |
bool |
[Pro-Only]
Sets the
Animancer.ITransition.FadeDuration to use when transitioning from
Animancer.TransitionLibraries.TransitionModifierDefinition.FromIndex to Animancer.TransitionLibraries.TransitionModifierDefinition.ToIndex.
|
| SetTransition |
Transition |
[Pro-Only]
Adds the `transition` to this library or replaces the existing one registered with the `key`.
|
| SetTransition |
Transition |
[Pro-Only]
Adds the `transition` to this library or replaces the existing one registered with the `key`.
|
| SetTransition |
Transition |
[Pro-Only]
Adds the `transition` to this library or replaces the existing one registered with the `key`.
|
| TryGetTransition |
bool |
[Pro-Only]
Tries to find a
Animancer.TransitionLibraries.TransitionModifierGroup registered with the Animancer.IHasKey.Key.
|
| TryGetTransition |
bool |
[Pro-Only]
Tries to find a
Animancer.TransitionLibraries.TransitionModifierGroup
via its Animancer.TransitionLibraries.TransitionModifierGroup.Index.
|
| TryGetTransition |
bool |
[Pro-Only]
Tries to find a
Animancer.TransitionLibraries.TransitionModifierGroup registered with the `key`.
|
| TryPlay |
AnimancerState |
Plays the transition registered with the specified `key` if there is one.
Otherwise, returns
null.
|