Camera
World camera: CCTV, cutscenes, and custom viewpoints players can switch between.
Introduction
Camera is a world camera: players can switch between several cameras, perfect for CCTV screens, cutscenes, or a custom main view. The Camera component panel in the Uni editor Image The Camera component panel in the Object editor. caption
How to Access
Shortcut: open the Asset Panel, go to the Device tab, Others category, and click the Camera block. It places a static camera into the world, ready to reposition and adjust its viewpoint. How to Access - the Camera block in Asset Panel > Device > Others
Properties
Camera Presets Enum Viewpoint presets: FirstPerson, Free, OverShoulder, OverHead, Oblique45, Horizontal2D. Follow Object The highlighted object the camera tracks. FOV & Distance Float Field of view width and how far the camera sits from its subject. Vertical & Horizontal Axis Orbit tilt and rotation around the subject. Offset & Screen Y Nudges the camera; Screen Y locks the subject's place on screen (0.5 = center). Can Zoom, Rotate V/H Bool Whether the player may pinch-zoom and drag-rotate this camera. Collision Detect Automatically pulls the camera forward when a wall blocks the view. Property Type Description Every property on the Camera component.
Events
Camera has no events.
Commands
Set Camera Type Switches the active camera preset by script. Command Description Camera commands.
Example
Switch camera on interact, wait 5 seconds, then reset Camera - Simple Example