ARWorldOriginExampleController Class |
Namespace: SimpleDemos
The ARWorldOriginExampleController type exposes the following members.
Name | Description | |
---|---|---|
ARWorldOriginExampleController | Initializes a new instance of the ARWorldOriginExampleController class |
Name | Description | |
---|---|---|
Awake | Called before start - sets up the singleton object for this class | |
GetTouch |
Gets the location of the user's touch
| |
NormalCloudAnchorTextUpdate |
THe cloud anchor callback that is used to inform the user that a normal cloud anchor was created
| |
SpawnNormalCloudAnchor |
Spawns a normal cloud anchor now that the cloud anchor visualization object has been created (red cylinder)
| |
SpawnSphere |
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
| |
SpawnWorldOrigin |
Spawns the world origin cloud anchor after the world origin object visualizer has been created (blue cube)
| |
Start | Called on start up - sets the initial text for the user and adds a listener for Submit button | |
SubmitCoordinates | Called when Submit button is pressed | |
Update | The logic of this example - listens for screen touches and spawns whichever object is currently active on the drop down menu | |
WorldOriginTextUpdate |
The cloud anchor callback that informs the user the world origin is finished being created
|
Name | Description | |
---|---|---|
m_Controller | Singleton for this class so that functions can be called after objects and cloud anchors are created using the same parameter they were created with | |
m_CurrentlySpawningCloudAnchor | Flag indicating if we are currently spawning a cloud anchor - 1 user should only spawn 1 cloud anchor at a time | |
m_DisplayInformation | Text that displays scene information to the user | |
m_LastValidPose | Gets the hit position where the user touched the screen to help record where the object is verses where the user tapped | |
m_NormalCloudAnchorObject | GameObject that represents a cloud anchor object (will be placed where the cloud anchor is) | |
m_ObjectToSpawnDropDown | Determines which object to spawn: Cloud Anchor or normal sphere | |
m_SpawnedSphere | GameObject that represents a cloud anchor object (will be placed where the cloud anchor is) | |
m_SubmitButton | Button for submitting coordinates | |
m_WorldOriginCloudAnchorObject | GameObject that represents the world origin cloud anchor (will be placed on where the world origin is) | |
m_WorldOriginInitilized | Flag indicating if the world origin has been initialized or not - it should only be set once | |
m_XInput | Input Box for X value | |
m_YInput | Input Box for Y value | |
m_ZInput | Input Box for Z value |