First Person Body

  • Choose Player gameobject or prefab.
  • Add desired body inside player gameobject as child.

Warning

Body must be configured as Humanoid!

Screenshot

  • Add following components to first person body gameobject.

    • Animator
    • Remote Body
  • Add Ranged Controller animator controller in Animator component.

Screenshot

  • Add body Avatar in Animator component if is empty (You can find it if expand body mesh prefab).

Screenshot


Remote Body

This component reads the necessary information and passes it to the animator controller.

Screenshot

Body Property Description
Controller Player first person controller references.
Default Height First person body height relative Y axis while controller in stay state.
Crouch Height First person body height relative Y axis while controller in crouching state.
Animator Parameter Description
Speed Animator controller parameter name to which the vertical speed value of the player controller will be passed.

Typeof(float)
Direction Animator controller parameter name to which the horizontal speed value of the player controller will be passed.

Typeof(float)
IsCrouching Animator controller parameter name to which the crouching value of the player controller will be passed.

Typeof(bool)
IsGrounded Animator controller parameter name to which the grounded value of the player controller will be passed.

Typeof(bool)
Velocity Smooth Frequency of synchronization of the player controller values and animator values.
UI Element Description
Screenshot Find all available parameters from attached Animator Controller

Override Animations

Screenshot

  • In animator override controller, in Controller field add animator controller that used in your first person body Animator component.
  • Override animations.

Screenshot

  • Replace animator controller that used in your first person body Animator component on created animator override controller.

Screenshot


Custom Animator Controller

  • Create new animator controller.
  • Open it and add parameters as in Remote Body component.
  • Add your custom animator controller in Animator component.

Screenshot

Note

The parameter names in the animator controller must match the names in the Remote Body component.