Method MoveCameraToWorldLocation
MoveCameraToWorldLocation(Vector3)
This function moves the camera to the world location provided by desiredWorldLocation.
It does this by moving the XR Origin object so that the camera's world location matches the desiredWorldLocation
Declaration
public bool MoveCameraToWorldLocation(Vector3 desiredWorldLocation)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | desiredWorldLocation | the position in world space that the camera should be moved to |
Returns
| Type | Description |
|---|---|
| bool | Returns true if the move is performed. Otherwise, returns false. |