Different movement “modes”

You can easily configure different movement modes, such as swimming or flight for a character, by switching to a different input mapping context.

For example, set up two input mapping contexts: CharacterWalking and CharacterFlying. Then, set your code up so it switches to the flying input mapping context when the character is flying.

This can be used for many different purposes as well, such as switching for navigating ingame menus, vehicles, etc.

See also