First Person Viewmodel

How to setup first person animations

Forcing First Person Mode

Make the following changes on your CharacterConfigSetup component:

  1. Start In First Person = true

  2. Character Camera Mode = Fixed

Custom Viewmodel Arms & Animations

Airship spawns viewmodel arms by default but doesn't animate them at all. Here is how to create a variant of the default CharacterViewmodel arms and edit the animator:

  1. Right click in project tab ⇒ Create ⇒ Airship ⇒ Viewmodel Variant

  2. Double click the newly created prefab variant to open it

  3. Replace the Animator Controller under AirshipRig with your own animator

  4. Find your CharacterConfigSetup component and set the Custom Viewmodel Prefab field to your new prefab variant.

Playing Animations

You can easily access the animator in code using:

const animator = Airship.Characters.viewmodel?.anim;
if (animator) {
    animator.SetTrigger("Jump");
}

Last updated