Next: Character Selector, Up: Character [Contents][Index]
Character Input Animator takes user input and applies that as Mecanim floats and triggers. This is useful for root motion characters, when you don’t want a movement script interfering with carefully-controlled animations, or for animating characters on a character customization screen. Just don’t forget to provide some input help to the user in this second case.
bool
currentlyAnimatingIs this Character Input Animator currently controlling character animations?
Default value: true
string
horizontalAxisAxis in the Input manage (Edit -> Project Settings -> Input) indicating the horizonta axis, which will be sent as a float to the Animator
Default value: "Horizontal"
string
animatorHorizontalA float defined in the Animator indicating how fast we’re strafing. -1 is left, 1 is right and 0 is no strafing at all
Default value: "Strafe"
string
verticalAxisAxis in the Input manage (Edit -> Project Settings -> Input) indicating the vertical axis, which will be sent as a float to the Animator
Default value: "Vertical"
string
animatorVerticalA float defined in the Animator indicating how fast we’re moving
Default value: "Run"
List<UserState>
userStatesA list of additional states you want to bring in to the Animator, which you can trigger with messages
Default value: new List<UserState>()
float
deadzoneThe percentage of space in the center of the controller that is ignored
Default value: 0.2f
Force Character Input Animator to enter one of the ’User States’
Argument: The index of the state we want to trigger
Force Character Input Animator to call the ’Return Trigger’ for one of the ’User States’, sending it’s return triggers to Mecanim
Argument: The index of the state we want to trigger
Allows this Character Input Animator to control animations.
Stops this Character Input Animator from controlling animations.
bool
currentlyAnimatingIs this Character Input Animator currently controlling character animations?
Default value: true
string
horizontalAxisAxis in the Input manage (Edit -> Project Settings -> Input) indicating the horizonta axis, which will be sent as a float to the Animator
Default value: "Horizontal"
string
animatorHorizontalA float defined in the Animator indicating how fast we’re strafing. -1 is left, 1 is right and 0 is no strafing at all
Default value: "Strafe"
string
verticalAxisAxis in the Input manage (Edit -> Project Settings -> Input) indicating the vertical axis, which will be sent as a float to the Animator
Default value: "Vertical"
string
animatorVerticalA float defined in the Animator indicating how fast we’re moving
Default value: "Run"
List<UserState>
userStatesA list of additional states you want to bring in to the Animator, which you can trigger with messages
Default value: new List<UserState>()
float
deadzoneThe percentage of space in the center of the controller that is ignored
Default value: 0.2f
Force Character Input Animator to enter one of the ’User States’
Argument: The index of the state we want to trigger
Force Character Input Animator to call the ’Return Trigger’ for one of the ’User States’, sending it’s return triggers to Mecanim
Argument: The index of the state we want to trigger
Allows this Character Input Animator to control animations.
Stops this Character Input Animator from controlling animations.
Next: Character Selector, Up: Character [Contents][Index]