CreateXRAnchorAsync

Family: Platform · One form

What it does

CreateXRAnchorAsync writes a value: it creates rather than reads. It takes poseJson (a string), and answers an integer.

Syntax

CreateXRAnchorAsync(poseJson string) → integer

Parameters

NameType
poseJsonstring

Every form returns

integer

Example · generated

xRAnchorAsync = CreateXRAnchorAsync("{}")DO  Sync()LOOP

CreateXRAnchorAsync is called and its answer is printed every frame. The DO … LOOP is not decoration: a classic BASIC program ends the moment it runs out of lines, and Sync() is what draws the frame.

111 commands in Platform