API

Interface IWebXRAnchorSystemOptions

Configuration options of the anchor system

interface IWebXRAnchorSystemOptions {
    clearAnchorsOnSessionInit?: boolean;
    doNotRemoveAnchorsOnSessionEnded?: boolean;
    worldParentNode?: TransformNode;
}
Index
clearAnchorsOnSessionInit?: boolean

If set to true, all anchor arrays will be cleared when the session initializes

doNotRemoveAnchorsOnSessionEnded?: boolean

If set to true a reference of the created anchors will be kept until the next session starts If not defined, anchors will be removed from the array when the feature is detached or the session ended.

worldParentNode?: TransformNode

a node that will be used to convert local to world coordinates