59 A flashlight reveal and 2D lighting
Set Flashlight Mode creates a screen-space reveal around the pointer. It affects the rendered room while leaving the higher GUI layer readable. It is a useful adventure-game reveal effect, not a physical 3D spot light attached to the character’s hand.
await SetFlashlightMode({
"enabled":true, "strength":1.0,
"radius":180.0, "shape":"circle"
})Radius is a screen-space value. Shapes include circle, spherical, square, rectangle and triangle. Turn the mode off explicitly when leaving the situation that needs it. For a torch that casts light and shadows in world space, use an appropriate light and attachment workflow instead.
Older native Canvas2D rooms can use PointLight2D-style lights with color, energy, radius and a shadow switch. Their lit appearance depends on the receiving canvas items and any authored occlusion. The current native Canvas2D renderer does not automatically create light-occluder polygons from a background or navigation area. A shadow switch alone will not make painted shadows dynamic.
2D Stage and the older Canvas2D compositor are different room systems. Use the room’s own inspector and test its actual rendering path. Do not assume a 3D shadow-map setting will create matching 2D occluders.
