Write an object. Only the fields named below are allowed. Unknown fields are rejected so a typo cannot hide inside the document.
You must include mode.
You may omit anchorRef, billboard, occlusion, scaleMode, interaction, and distance. Leave a field out when you have nothing to say. Do not invent a placeholder.
Exact constraints
- type
object- additional properties
forbidden
moderequired"world-space" | "screen-space" | "anchored" | "entity-attached"Pick one of the 4 listed values. Any other value is invalid. The list is closed on purpose so tools agree on the same words.
Exact constraints
"world-space""screen-space""anchored""entity-attached"
anchorRefidThis is not a new shape. It reuses id from the common module. Open that definition for the fields you can write.
billboard"none" | "camera" | "axis-y"Pick one of the 3 listed values. Any other value is invalid. The list is closed on purpose so tools agree on the same words.
Exact constraints
"none""camera""axis-y"
occlusion"depth-test" | "always-visible" | "fade"Pick one of the 3 listed values. Any other value is invalid. The list is closed on purpose so tools agree on the same words.
Exact constraints
"depth-test""always-visible""fade"
scaleMode"world" | "screen" | "distance"Pick one of the 3 listed values. Any other value is invalid. The list is closed on purpose so tools agree on the same words.
Exact constraints
"world""screen""distance"
interaction"pointer" | "gaze" | "ray" | "direct" | "none"Pick one of the 5 listed values. Any other value is invalid. The list is closed on purpose so tools agree on the same words.
Exact constraints
"pointer""gaze""ray""direct""none"
distancenumberWrite a number. Decimals are allowed.
The number must be at least 0.
Exact constraints
- type
number- minimum
0