Skip to reading
GDScript Programming & Godot

SetCameraPriority()

Edition 0.86.4.1 HF1

0.86.4.1 Hotfix 1 edition. Earlier lessons and screenshots retain their original version context; revised references and supplements describe the newer behavior.

Download PDFView PDF page

Set Camera Priority

Change the priority used by the advanced-camera system.

Source table from SetCameraPriority(), page 139
Option key / fieldMeaning and inputDefault
Camera cameraIdChoose an authored camera ID.Blank
Camera Priority priorityCamera selection priority number.10

Timing. Waits for the runtime routine to return; no further completion wait is promised by this schema.

Code example
await SetCameraPriority({"cameraId": "wide", "priority": 10})

In use. Raise a conversation camera's priority while a scene is staged, then restore the previous priority. Priority is camera-selection policy; use Activate Camera when the sequence must explicitly take a particular view.

ChangeCamera()#

Change Camera

Switch to a selected authored camera through the direct camera-change route.

Source table from SetCameraPriority(), page 139
Option key / fieldMeaning and inputDefault
Room sceneIdChoose a scene ID.Blank
Camera View cameraIdChoose a camera in the selected scene.Blank

Timing. Waits for the runtime routine to return; no further completion wait is promised by this schema.

Code example
await ChangeCamera({"sceneId": "lab", "cameraId": "wide"})

In use. Choose Room View after an inspection ends. The scene field supplies picker context; it does not transport the player to another room. Use Activate Camera when you want explicit blend duration and wait control.

Page 139 of 378Permalink
Go to page