First Person Viewmodel
How to setup first person animations
Last updated
How to setup first person animations
Last updated
Make the following changes on your CharacterConfigSetup
component:
Start In First Person = true
Character Camera Mode = Fixed
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:
Right click in project tab ⇒ Create ⇒ Airship ⇒ Viewmodel Variant
Double click the newly created prefab variant to open it
Replace the Animator Controller under AirshipRig
with your own animator
Find your CharacterConfigSetup
component and set the Custom Viewmodel Prefab
field to your new prefab variant.
You can easily access the animator in code using:
const animator = Airship.Characters.viewmodel?.anim;
if (animator) {
animator.SetTrigger("Jump");
}