|
Default AR App
Documentation for the Default AR App project found at https://github.com/ingratexr/unity-ar-boilerplate
|
Class that looks for surfaces to place objects in AR by raycasting out from camera. More...
Public Member Functions | |
| delegate void | ObjectPlacedEventHandler (GameObject obj) |
| Delegate for event for when this script places an object. More... | |
| delegate void | ObjectMovingEventHandler (GameObject obj) |
| Delegate for event for when this script starts moving an object. More... | |
| delegate void | LookingForPlanesEventHandler () |
| Delegate for event for when this script starts looking for surfaces. More... | |
| delegate void | FoundPlaneEventHandler () |
| Delegate for event for when this script finds a surface. More... | |
| void | InitPlacementObjAndIndicator (GameObject _objToPlace, GameObject _placementIndicator, float _screenPointHeight=0.5f) |
| Sets the object to place and the object to use as a placement indicator. More... | |
| void | PlaceObject () |
| Place the placementObjInstance at the pose's location (assumes pose's location is valid). More... | |
| void | MoveObject () |
| Place the object somewhere else. More... | |
| void | OnLookingForPlanes () |
| Fire LookingForPlanes event. More... | |
| void | OnObjectMoving () |
| Fire ObjectMoving event. More... | |
| void | OnFoundPlane () |
| Fire FoundPlane event. More... | |
Public Attributes | |
| LookingForPlanesEventHandler | LookingForPlanes |
| Event fired when this script starts looking for surfaces. More... | |
| FoundPlaneEventHandler | FoundPlane |
| Event fired when this script finds a surface. More... | |
Events | |
| ObjectPlacedEventHandler | ObjectPlaced |
| Event called when this script places its object. More... | |
| ObjectMovingEventHandler | ObjectMoving |
| Event called when this script starts moving its object. More... | |
Class that looks for surfaces to place objects in AR by raycasting out from camera.
Where surfaces are found, prompts user with indicator that shows where the object will be placed. Places object. Should be placed on the same GameObject as ARPlacementUI component.
| delegate void ARPlacementMgr.FoundPlaneEventHandler | ( | ) |
Delegate for event for when this script finds a surface.
| void ARPlacementMgr.InitPlacementObjAndIndicator | ( | GameObject | _objToPlace, |
| GameObject | _placementIndicator, | ||
| float | _screenPointHeight = 0.5f |
||
| ) |
Sets the object to place and the object to use as a placement indicator.
Gets called when this script's object is enabled.
| _objToPlace | Object to place. |
| _placementIndicator | Object that shows the user where the object will go when they place it. |
| delegate void ARPlacementMgr.LookingForPlanesEventHandler | ( | ) |
Delegate for event for when this script starts looking for surfaces.
| void ARPlacementMgr.MoveObject | ( | ) |
Place the object somewhere else.
| delegate void ARPlacementMgr.ObjectMovingEventHandler | ( | GameObject | obj | ) |
Delegate for event for when this script starts moving an object.
| obj | Object this script is moving. |
| delegate void ARPlacementMgr.ObjectPlacedEventHandler | ( | GameObject | obj | ) |
Delegate for event for when this script places an object.
| obj | Object this script placed. |
| void ARPlacementMgr.OnFoundPlane | ( | ) |
Fire FoundPlane event.
| void ARPlacementMgr.OnLookingForPlanes | ( | ) |
Fire LookingForPlanes event.
| void ARPlacementMgr.OnObjectMoving | ( | ) |
Fire ObjectMoving event.
| void ARPlacementMgr.PlaceObject | ( | ) |
Place the placementObjInstance at the pose's location (assumes pose's location is valid).
If placementObjInstance doesn't exist, instantiates it. If it does exist, sets it to active. Turn off the placement indicator.
| FoundPlaneEventHandler ARPlacementMgr.FoundPlane |
Event fired when this script finds a surface.
| LookingForPlanesEventHandler ARPlacementMgr.LookingForPlanes |
Event fired when this script starts looking for surfaces.
| ObjectMovingEventHandler ARPlacementMgr.ObjectMoving |
Event called when this script starts moving its object.
| ObjectPlacedEventHandler ARPlacementMgr.ObjectPlaced |
Event called when this script places its object.