HudPainter Hud { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The Hud property of the CameraComponent class provides access to the HudPainter associated with the camera. This allows for rendering heads-up display (HUD) elements specific to the camera's view.

Usage

To use the Hud property, you need to have a CameraComponent instance. You can then access the Hud property to perform operations related to HUD rendering.

Example

// Assuming 'cameraComponent' is an instance of CameraComponent
var hudPainter = cameraComponent.Hud;

// Use hudPainter to draw HUD elements
hudPainter.DrawText("Hello, World!", new Vector2(100, 100), Color.White);