Skip to content

Instantly share code, notes, and snippets.

@andijakl
Last active July 26, 2019 11:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andijakl/ebe08ed16ca7325dc1bd40269812e616 to your computer and use it in GitHub Desktop.
Save andijakl/ebe08ed16ca7325dc1bd40269812e616 to your computer and use it in GitHub Desktop.
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