Component for making a scene editor.
Add the editor
component to an entity that represents your tool.
<a-gltf-model src="tool.glb" position="0 1 -.25" editor></a-gltf-model>
Property | Description | Default |
---|---|---|
gridSize | Size of snapping grid. | .5 .5 .5 |
rotationSteps | Number of valid rotation steps. | 8 8 8 |
Method | Description |
---|---|
addEntity(html) | Add an entity to the scene. |
findEntity(el) | Return index of entity. |
removeEntity(el) | Remove an entity to the scene. |
load() | Load scene from localStorage. |
save() | Save scene to localStorage. |