Skip to content

Components

Confiner

Keeps a camera inside a room instead of showing the void beyond its walls.

On this page

Add it

+ Add node → Camera Confiner creates a node with it already on. Already have a node for it? Add component → ConfinerComponent.

From a script

A script on the same node writes these fields by name. ConfinerComponent is the name to pass.

rgs
set_point("ConfinerComponent", "bounds", vec2(1920.0, 1080.0));
set_number("ConfinerComponent", "blend", 0.0);

Fields

FieldScript nameKindDefaultWhat it does
Boundsboundstwo numbers (x, y), at least 1(1920, 1080)Room size, centred on this node.
Blendblendnumber, at least 0, step 0.050 sSeconds to slide the view into this room when the camera arrives in it; 0 cuts.