Contents

BillboardComponent

A component that orients an entity instance so that it continuously points toward the active camera.

Declaration

struct BillboardComponent

Mentioned in

Overview

The BillboardComponent automatically adjusts an entity’s orientation so that its z-axis keeps pointing in the direction of the main camera in a RealityKit scene.

Add a BillboardComponent to any entity by passing it to an entity’s set(_:) method.

entity.components.set(BillboardComponent())

The entity immediately reorients itself so that it faces the scene’s active camera.

Without BillboardComponent

With BillboardComponent

[Image]

[Image]

For an example of how to animate blendFactor, see BillboardAction.

Topics

Initializers

Instance Properties

See Also

Visual adjustments