Description Usage Arguments Details Value
Build an A-Frame Update Message
1 | a_update(id, component, attributes, replaces_component = FALSE)
|
id |
the id of the entity that will have the event emitted on it. |
component |
the name of the component to have its attributes updated. |
attributes |
the attributes to be set along with their values. |
replaces_component |
if TRUE, any attributes not specified are set to their default values. This effectively makes this update a full replacement of the existing component. |
Construct an A-Frame component attribute update message to be applied to the component of entity identified by 'id'.
Note for setting vector components: Due to a quirk in the A-Frame JS API, setting vectors for position, rotation, scale etc must be done with a named list: i.e.
a_update(id = "my_box", component = "position", attributes = list(x = 1, y = 1, z = 1))
An object that represents an A-Frame event.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.