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.
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.
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.
// 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);