<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/BillboardComponent",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation18BillboardComponentV"
  },
  "title" : "BillboardComponent"
}
-->

# BillboardComponent

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

```
struct BillboardComponent
```

## 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(_:)`](/documentation/RealityKit/Entity/ComponentSet/set(_:)-8sii2) method.

```swift
entity.components.set(BillboardComponent())
```

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

|Without `BillboardComponent`                                                                                                                                                                          |With `BillboardComponent`                                                                                                                                  |
|:----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|:---------------------------------------------------------------------------------------------------------------------------------------------------------:|
|![An image of a vintage-style toy robot in a living room scene. The robot is facing about 45 degrees to the left and down from the viewer’s perspective.](billboardcomponent-robot-side-above-without)|![An image of a vintage-style toy robot in a living room scene. The robot is facing directly towards the viewer.](billboardcomponent-robot-side-above-with)|

> Important: An entity with `BillboardComponent` doesn’t provide access to its end orientation.
> Requesting the entity’s orientation through its transform returns only the unaltered orientation.

For an example of how to animate [`blendFactor`](/documentation/RealityKit/BillboardComponent/blendFactor), see [`BillboardAction`](/documentation/RealityKit/BillboardAction).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)