Skip to content

Instantly share code, notes, and snippets.

Last active July 26, 2019 11:35
What would you like to do?
Basic setup of a new AR anchor positioning script that defines a property.
import * as s from 'module://sumerian-common/api';
import * as si from 'module://sumerian-common/internal';
export default class AnchorPositioning extends s.Action {
static get PROPERTIES() {
return {
// Optional property to set the owner of the AR anchor
anchorEntity: {
// Property should be a reference to another entity in the scene
type: s.type.Entity,
// Description for the Amazon Sumerian web UI
description: 'Attach Anchor to this Entity'
start(ctx) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment