Interface IProvidesMeshes
Defines the API for a Mesh Provider
Inherited Members
Namespace: Unity.MARS.Providers
Syntax
public interface IProvidesMeshes : IFunctionalityProvider
Methods
GetMeshes(List<MRMesh>)
Get the currently tracked meshes
Declaration
void GetMeshes(List<MRMesh> meshes)
Parameters
Type | Name | Description |
---|---|---|
List<MRMesh> | meshes | A list of MRMesh objects to which the currently tracked meshes will be added |
StartDetectingMeshes()
Start detecting meshes. Mesh detection is enabled on initialization, so this is only necessary after calling StopDetectingMeshes.
Declaration
void StartDetectingMeshes()
StopDetectingMeshes()
Stop detecting meshes
Declaration
void StopDetectingMeshes()
Events
MeshAdded
Called when a mesh becomes tracked for the first time
Declaration
event Action<MRMesh> MeshAdded
Event Type
Type | Description |
---|---|
Action<MRMesh> |
MeshRemoved
Called when a tracked mesh is removed
Declaration
event Action<MarsTrackableId> MeshRemoved
Event Type
Type | Description |
---|---|
Action<MarsTrackableId> |
MeshUpdated
Called when a tracked mesh has updated data
Declaration
event Action<MRMesh> MeshUpdated
Event Type
Type | Description |
---|---|
Action<MRMesh> |