Summary
[
System.SerializableAttribute
]
A library of transitions and other details which can create a Animancer.TransitionLibraries.TransitionLibrary
.
- Assembly
- Animancer
.dll - Namespace
- Animancer
.TransitionLibraries - Interfaces
-
- IAnimationClipSource
- ICopyable
<Transition Library >Definition - IEquatable
<Transition Library >Definition - IHasDescription
- Base Types
-
- Object
graph BT
Type-->Base0["Object"]
Type-.->Interface0["IAnimationClipSource"]
Type-.->Interface1["ICopyable<TransitionLibraryDefinition>"]
Type-.->Interface2["IEquatable<TransitionLibraryDefinition>"]
Type-.->Interface3["IHasDescription"]
click Interface3 "/animancer/api/Animancer/IHasDescription"
Type["TransitionLibraryDefinition"]
class Type type-node
Syntax
[Serializable]
public class TransitionLibraryDefinition : IAnimationClipSource,
ICopyable<TransitionLibraryDefinition>, IEquatable<TransitionLibraryDefinition>, IHasDescription
Remarks
Documentation:
Transition Libraries
Attributes
Type | Description |
---|---|
Serializable |
Fields
Name | Constant Value | Summary |
---|---|---|
Alias |
Should all Transitions automatically be registered using their name as an Alias? |
Tooltip for the
Animancer.TransitionLibraries.TransitionLibraryDefinition.AliasAllTransitions field.static
|
Properties
Name | Value | Summary |
---|---|---|
AliasAllTransitions | bool |
[
UnityEngine.SerializeField ]
Should all Transitions automatically be registered using their name as an Alias?
|
Aliases | NamedIndex[] |
[
UnityEngine.SerializeField ] Alternate names that can be used to look up transitions. |
Modifiers | Transition |
[
UnityEngine.SerializeField ] Modified fade durations for specific transition combinations. |
Transitions | Transition |
[
UnityEngine.SerializeField ] The transitions in this library. |
Methods
Name | Value | Summary |
---|---|---|
AddAlias |
int |
Adds an item to the
Animancer.TransitionLibraries.TransitionLibraryDefinition.Aliases , sorted by its values. |
AddTransition |
void |
Adds an item to the end of the
Animancer.TransitionLibraries.TransitionLibraryDefinition.Transitions . |
AppendDescription |
void |
Appends a detailed descrption of the current details of this object.
|
CopyFrom |
void |
Copies the contents of `copyFrom` into this object, replacing its previous contents.
|
Equals |
bool |
Are all fields in this object equal to the equivalent in `obj`?
|
Equals |
bool |
Are all fields in this object equal to the equivalent fields in `other`?
|
GetAnimationClips |
void |
Gathers all the animations in this definition.
|
GetHashCode |
int |
Returns a hash code based on the values of this object's fields.
|
IndexOfModifier |
int |
Returns the index in the
Animancer.TransitionLibraries.TransitionLibraryDefinition.Modifiers which matches the given
Animancer.TransitionLibraries.TransitionModifierDefinition.FromIndex and
Animancer.TransitionLibraries.TransitionModifierDefinition.ToIndex or -1 if no such item exists.
|
RemoveAlias |
void |
Removes an item from the
Animancer.TransitionLibraries.TransitionLibraryDefinition.Aliases . |
RemoveAlias |
bool |
Removes an item from the
Animancer.TransitionLibraries.TransitionLibraryDefinition.Aliases . |
RemoveModifier |
bool |
Removes an item from the
Animancer.TransitionLibraries.TransitionLibraryDefinition.Modifiers . |
RemoveModifier |
bool |
Removes an item from the
Animancer.TransitionLibraries.TransitionLibraryDefinition.Modifiers . |
RemoveTransition |
void |
Removes an item from the
Animancer.TransitionLibraries.TransitionLibraryDefinition.Transitions
and adjusts the other fields to account for the moved indices.
|
SetModifier |
void |
Adds or replaces an item in the
Animancer.TransitionLibraries.TransitionLibraryDefinition.Modifiers . |
SortAliases |
void |
Ensures that the
Animancer.TransitionLibraries.TransitionLibraryDefinition.Aliases are sorted. |
TryGetModifier |
bool |
Tries to find an item in the
Animancer.TransitionLibraries.TransitionLibraryDefinition.Modifiers with the specified indices. |
TryGetTransition |
bool |
Animancer.AnimancerUtilities.TryGet``1(System.Collections.Generic.IList{``0},System.Int32,``0@) for the Animancer.TransitionLibraries.TransitionLibraryDefinition.Transitions .
|
Operators
Name | Value | Summary |
---|---|---|
operator != |
bool | |
operator == |
bool |