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
| Field | Script name | Kind | Default | What it does |
|---|---|---|---|---|
| Bounds | bounds | two numbers (x, y), at least 1 | (1920, 1080) | Room size, centred on this node. |
| Blend | blend | number, at least 0, step 0.05 | 0 s | Seconds to slide the view into this room when the camera arrives in it; 0 cuts. |