Layer2D#
A Layer 2D component on a root object of a 2D scene: the object and everything under it form one layer, drawn in scene order with the other layers. A layer that holds an active Camera2D is seen through that camera (a HUD layer keeps a fixed camera while the game layer's camera follows the player); without one it uses the scene's camera. Locked keeps the 2D Scene View from selecting or dragging its content.
public readonly record struct Layer2D(bool Locked)Record properties#
| Property | Type | Access | Constructor default |
|---|---|---|---|
Locked | bool | get; init; | required |
Source#
- RuntimeWorld.cs