Skip to main content
Discovery icon for VRChat Discord server

VRChat

106,271 Online
420,509 Members
# udon-networking3 people

overriding player camera

It's possible to override the default player camera in VRChat by setting another camera's depth to a higher value, which forces it to render after the default camera.

  • The default player camera can be overridden by manually building a player controller and assigning another camera as the player's primary view, achieved by setting its depth to a higher value than the default camera.
  • A Unity trick involves adjusting the depth values on the camera component, where cameras with lower depth render before those with higher depth.
  • A provided UdonSharp script demonstrates this by toggling a public `overrideCamera` boolean, which enables/disables a target camera and sets its depth to 0 (override) or -1 (default).
  • The script uses the `InputJump` event to trigger the camera swap, but any UdonSharp script can call the `OverrideCamera()` function to switch views.
Summarized from recent messages, might be inaccurate

More conversations

Talk, Play, &
Hang Out

Find your space to hang out, discuss the latest updates with the party chat, and see who's down to join your next match.
Get App