PcoWSkbVqDnWTu_dm2ix
The Developer Hub is now deprecated and information on this page may no longer be accurate. To see our new and improved documentation, please click here. You can read more about the future of documentation here.
Collapse Sidebar

DevCameraOcclusionMode

Player

DevCameraOcclusionMode

The DevCameraOcclusionMode Player property sets how the default camera handles objects between the camera and the player. Set by default by StarterPlayer/DevCameraOcclusionMode.

The default value is Zoom (0): The camera will zoom in until there is nothing between the player and camera.

See Enum/DevCameraOcclusionMode for the different occlusion modes available. Sets how the default camera handles objects between the camera and the player.


Code Samples


Setting a Player's Camera Occlusion Mode

The example demonstrates how to set a player’s camera occlusion mode.

In this example, we set the camera occlusion mode to Invisicam via the Enum/DevTouchCameraMovementMode enum. This means that the any objects between the camera and player will become translucent locally.