Basic setup of a new AR anchor positioning script that defines a property.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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