API reference
API reference
Select your platform
No SDKs available
No versions available

AnchorMeshGroup

AnchorMeshGroup

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.

Constructors

NameSummary
AnchorMeshGroup
constructor(meshes: List<String>, selectionMode: AnchorMeshSelectionMode = AnchorMeshSelectionMode.RANDOM, scalingMode: AnchorMeshScalingMode = AnchorMeshScalingMode.STRETCH, matchAspectRatio: Boolean = false)

Properties

NameSummary
matchAspectRatio
val matchAspectRatio: Boolean = false

Ensures that the mesh gets rotated in a way to match the aspect ratio of the anchor.
meshes
val meshes: List<String>

A list of meshes considered for spawning. The selection of meshes for spawning is determined by the selectionMode.
scalingMode
val scalingMode: AnchorMeshScalingMode

Determines the scaling mode that should be used when scaling a mesh from that group.
selectionMode
val selectionMode: AnchorMeshSelectionMode

Determines the selection method for the meshes in that group.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon