Skip to main content

Player Mod Setter

This UdonBehaviour example script allows you configure the movement of players in your world.

Variables

NameTypeDefaultDescription
Jump Heightfloat3The jump strength of players. Affected by gravity.
Run Speedfloat4- Keyboard input: The movement speed when moving forward or backward without holding the 'Shift' key.
- Analog stick input: The movement speed when tilting the stick forward or backward.
Walk Speedfloat2- Keyboard input: The movement speed when moving forward or backward without holding the 'Shift' key.
- Analog stick input: Always uses "Run Speed" instead of "Walk Speed."
Strafe Speedfloat2The movement speed when moving left or right.
Gravityfloat1The amount that gravity affects players.
Use Legacy LocomotionboolfalseEnables VRChat's deprecated legacy locomotion system. Cannot be disabled by Udon later.

Example

The UdonSharp program is called PlayerModSetter.cs and the Udon Graph program is called VRCWorldSettings.asset. They work very similarly, and either one can be used in your VRChat world.

This Graph program can be found in Packages/com.vrchat.worlds/Samples/UdonExampleScene/UdonProgramSources/VRCWorldSettings.asset/.

An Udon Graph program that sets various attributes for the player when they join the world. It contains several text comments explaining basic Graph syntax.