BillboardRenderer
Renders a billboard from a BillboardAsset.
Read time 8 minutesLast updated 2 days ago
Definition
- Type: Class
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
- Inherits from: Renderer
public sealed class BillboardRenderer : Renderer
Remarks
BillboardRenderers that share the same BillboardAsset can be rendered in a batch if they are next to each other in the order of rendering. The batching is always enabled regardless of whether dynamic batching is enabled or not.
Due to the always-upright nature of a tree billboard, BillboardRenderer can only rotate around Y-axis.
Additional Resources: BillboardAsset.
Constructors
Constructor | Description |
|---|---|
| BillboardRenderer() | Constructor. |
Properties
Property | Description |
|---|---|
| billboard | The BillboardAsset to render. |
Inheritance
Operators
Operator | Description |
|---|---|
| operator == | Compares two object references to see if they refer to the same object. |
| bool | Determines whether the object exists. |
| operator != | Compares if two objects refer to a different object. |