Skip to content
Select language:English

AuRea 1.0.2

class AuAnchor(val marker: Marker) : AuNative, AuContainer

Represents an anchor in the AR scene associated with a tracked Marker.

The anchor maintains a native handle and updates its transformation based on the marker's pose. It is typically used as a container for virtual content that should follow a real-world marker.

Constructors

constructor(marker: Marker)

Properties

val marker: Marker

Inherited properties

The handle to the native resource.

Functions

fun showAssets(pixelsPerMeters: Float = 1000.0f, bitmapProvider: (String) -> AuBitmap? = { null })

Shows labels in the Marker associated with this anchor.

fun showAssets(assets: Array<Catalog.Asset>, pixelsPerMeters: Float = 1000.0f, bitmapProvider: (String) -> AuBitmap? = { null })

Shows all the labels in the provided array.

fun showBanner(texture: AuTexture)

Shows a banner on the anchor.

Inherited functions

open fun add(entity: AuEntity)

Adds the specified entity to this container.

open override fun close()

Release the native resources.

open fun remove(entity: AuEntity)

Removes the specified entity from this container.

Removes all entities currently attached to this container.

open fun removeLastEntity()

Removes the most recently added entity from this container.