CmdCameraUpsert
Upserts a camera (Create or Update) in a specific realm.
Arguments
Accepts one of:
CmdCameraCreateArgsCmdCameraUpdateArgs
Key fields:
realmId(required)cameraId(required)transform,kind,nearFar,layerMask,orderviewPosition(optional viewport override)orthoScale(for orthographic projection)
Notes
- Camera ownership is realm-scoped (
realmId). - Projection is resolved by the core from the effective target/surface size.
- In
TargetLayer,cameraIdcan override which camera samples a realm. realmIdis late-bound for create operations: creating a camera can happen before the referenced realm exists.
Response
Returns { success, message }.
On failure, the core also emits SystemEvent::Error (scope="command").
Documentation Vulfram Core