destroy()
method when the AnchorMeshSpawner instance is no longer in use.Name | Summary |
---|---|
AnchorMeshSpawner | constructor(mrukSystem: MRUKSystem, spawnGroups: Map<MRUKLabel, AnchorMeshSpawner.AnchorMeshGroup>, spawnMode: MRUKSpawnMode = MRUKSpawnMode.CURRENT_ROOM_ONLY)constructor(mrukFeature: MRUKFeature, spawnGroups: Map<MRUKLabel, AnchorMeshSpawner.AnchorMeshGroup>, spawnMode: MRUKSpawnMode = MRUKSpawnMode.CURRENT_ROOM_ONLY) |
Name | Summary |
---|---|
data class AnchorMeshGroup(val meshes: List<String>, val selectionMode: AnchorMeshSelectionMode = AnchorMeshSelectionMode.RANDOM, val scalingMode: AnchorMeshScalingMode = AnchorMeshScalingMode.STRETCH, val matchAspectRatio: Boolean = false) The AnchorMeshGroup contains the information needed to spawn a mesh for a label. See spawnGroups on the AnchorMeshSpawner. | |
Companion | object Companion |
Name | Summary |
---|---|
mrukFeature | val mrukFeature: MRUKFeature The MRUKFeature to which this AnchorMeshSpawner is tied. The AnchorMeshSpawner gets its anchor data from the MRUKFeature. |
spawnGroups | var spawnGroups: Map<MRUKLabel, AnchorMeshSpawner.AnchorMeshGroup> A map of label to the meshes to spawn. |
spawnMode | val spawnMode: MRUKSpawnMode The spawnMode determines if the AnchorMeshSpawner should spawn meshes automatically whenever the mrukFeature has new anchors loaded. If the spawnMode is set to NONE spawnMeshes() needs to be invoked manually. |
Name | Summary |
---|---|
destroy | fun destroy() Destroys the AnchorMeshSpawner. It’s important to call this function before the AnchorMeshSpawner gets out of scope because it might lead to memory leaks otherwise. |
spawnMeshes |
Name | Summary |
---|---|
boundsCache | val boundsCache: <Error class: unknown class><String, Bound3D> |
Name | Summary |
---|---|
getMeshBounds | fun getMeshBounds(mesh: String): Bound3D |