class MeshObjectsGenerator (Niantic.ARDK.Extensions.Meshing.MeshObjectsGenerator)
Overview
class MeshObjectsGenerator { public: // properties IReadOnlyDictionary<Vector3Int, GameObject> BlockObjects; int ColliderUpdateThrottle; // events event MeshObjectsCleared(); event MeshObjectsUpdated(); // methods void Clear(); MeshObjectsGenerator( IARMesh arMesh, GameObject root, GameObject prefab, Material invisibleMaterial, int colliderUpdateThrottle ); void SetRendererEnabled(bool isEnabled); void SetUseInvisibleMaterial(bool useInvisible); bool TryGetBlockObject(Vector3Int blockCoords, out GameObject blockObject); void UpdateMeshBlocks(MeshBlocksUpdatedArgs args); };
Detailed Documentation
Events
event MeshObjectsCleared()
Called when all mesh blocks have been cleared.
event MeshObjectsUpdated()
Called when all mesh blocks have been updated with info from the the latest mesh update.