parameters for PlayableAnimation that are used in behaviours and shown in the inspector
|
PlayableAnimation | Play (CharacterBase character, Action< PlayableAnimation > finished=null, bool oneShot=true, string name=null) |
| creates a new animation using these parameters and immediately plays it
|
|
PlayableAnimation | Play (CharacterActionBase action, Action< PlayableAnimation > finished=null, bool oneShot=true, string name=null) |
| creates a new animation using these parameters and immediately plays it
|
|
PlayableAnimation | Play (Animator target, CharacterBase character=null, Action< PlayableAnimation > finished=null, bool oneShot=true, string name=null) |
| creates a new animation using these parameters and immediately plays it
|
|
PlayableAnimation | Create (CharacterBase character, Action< PlayableAnimation > finished=null, bool oneShot=false, string name=null) |
| creates a new animation using these parameters
|
|
PlayableAnimation | Create (CharacterActionBase action, Action< PlayableAnimation > finished=null, bool oneShot=false, string name=null) |
| creates a new animation using these parameters
|
|
PlayableAnimation | Create (Animator target, CharacterBase character=null, Action< PlayableAnimation > finished=null, bool oneShot=false, string name=null) |
| creates a new animation using these parameters
|
|
|
AnimationClip | Clip |
|
RuntimeAnimatorController | Controller |
|
float | Delay |
|
float | Speed = 1f |
|
float | LeadIn = 0.1f |
|
float | LeadOut = 0.1f |
|
float | Weight = 1f |
|
AvatarMask | Mask |
|
bool | Additive |
|
CharacterInstructionBase[] | Instructions |
|
PlayableAnimationMessage[] | Messages |
|
bool | Loop |
|
float | StartTime = 0.0f |
|
float | EndTime = 1.0f |
|
string | StartState |
|
string | EndState |
|
◆ Create() [1/3]
creates a new animation using these parameters
- Parameters
-
target | the animator to play the animation on |
finished | executed when the animation is finished playing |
oneShot | whether the animation is automatically destroyed when finished, when false the animation can be reused but has to be destroyed by the consumer |
name | name of the graph that is displayed in graph visualizers |
- Returns
- the created animation that is ready to be played
◆ Create() [2/3]
creates a new animation using these parameters
- Parameters
-
action | the action starting the animation, animation is played on the actions character, its name appears in the graph name |
finished | executed when the animation is finished playing |
oneShot | whether the animation is automatically destroyed when finished, when false the animation can be reused but has to be destroyed by the consumer |
name | name of the graph that is displayed in graph visualizers |
- Returns
- the created animation that is ready to be played
◆ Create() [3/3]
creates a new animation using these parameters
- Parameters
-
character | animation will be played on the charcters animator, its name appears in the graph name |
finished | executed when the animation is finished playing |
oneShot | whether the animation is automatically destroyed when finished, when false the animation can be reused but has to be destroyed by the consumer |
name | name of the graph that is displayed in graph visualizers |
- Returns
- the created animation that is ready to be played
◆ Play() [1/3]
creates a new animation using these parameters and immediately plays it
- Parameters
-
target | the animator to play the animation on |
finished | executed when the animation is finished playing |
oneShot | whether the animation is automatically destroyed when finished, when false the animation can be reused but has to be destroyed by the consumer |
name | name of the graph that is displayed in graph visualizers |
- Returns
- the created animation that has been started
◆ Play() [2/3]
creates a new animation using these parameters and immediately plays it
- Parameters
-
action | the action starting the animation, animation is played on the actions character, its name appears in the graph name |
finished | executed when the animation is finished playing |
oneShot | whether the animation is automatically destroyed when finished, when false the animation can be reused but has to be destroyed by the consumer |
name | name of the graph that is displayed in graph visualizers |
- Returns
- the created animation that has been started
◆ Play() [3/3]
creates a new animation using these parameters and immediately plays it
- Parameters
-
character | animation will be played on the charcters animator, its name appears in the graph name |
finished | executed when the animation is finished playing |
oneShot | whether the animation is automatically destroyed when finished, when false the animation can be reused but has to be destroyed by the consumer |
name | name of the graph that is displayed in graph visualizers |
- Returns
- the created animation that has been started