CmdModelUpsert
Upserts a model (Create or Update) in a specific realm.
Arguments
Accepts one of:
CmdModelCreateArgsCmdModelUpdateArgs
Key fields:
realmId(required)modelId(required)geometryId,materialIdtransform,layerMaskcastShadow,receiveShadow,castOutline,outlineColor
Notes
- Model ownership is realm-scoped (
realmId). geometryIdandmaterialIdare global logical IDs.- Missing referenced resources use fallback behavior until available.
realmIdis late-bound for create operations: creating a model can happen before the referenced realm exists.
Response
Returns { success, message }.
On failure, the core also emits SystemEvent::Error (scope="command").
Documentation Vulfram Core