Click or drag to resize

ARRaycast_Example Methods

The ARRaycast_Example type exposes the following members.

Methods
  NameDescription
Private methodDeselectObject
Deselects the currently selected object
Private methodSelectObject
Selects the given object
Public methodStatic memberSpawnSphere
The create object call back for the normal spheres - used to inform the user the sphere was created and to scale it down so it matches the size of the other objects
Private methodStatic memberSpawnWorldOrigin
Spawns the world origin cloud anchor after the world origin object visualizer has been created (blue cube)
Private methodStart
Called on start up - creates the world origin at the origin. For simplicity, this demo creates the origin at the exact location the AR user starts at, which may cause issues if the AR user starts in one location and then moves to another area and begins creating objects - the objects may be far from the PC user in this case. For a better representation of accurate world origin creation, check out the ARWorldOrigin demo.
Private methodUpdate
Update function - gets touch and selects or creates objects
Top
See Also