replace

abstract suspend fun replace(instanceId: InstanceId, with: ARObjectReference, configuration: ARObjectConfiguration.() -> Unit = {}): InstanceId

Replaces an existing AR object with a new one.

Return

The unique identifier of the newly placed instance.

Parameters

instanceId

The unique identifier of the object to be replaced.

with

The reference to the new 3D model to place.

configuration

A builder block to customize the new object's settings.