Skip to content

MiniMap ​

Inherits: HUDUIElement < Control

MinimapCamera is a specialized camera used for rendering a top-down view of the game world, typically displayed as a minimap in the user interface. It follows the main camera's position but maintains a fixed height and offset.

Description ​

Key features:

  • Follows the x and z position of the main camera
  • Maintains a fixed y position for a consistent top-down view
  • Uses a fixed offset from the main camera's z position
  • Updates its position every frame to stay in sync with the main camera

This camera is designed to work in conjunction with a separate render layer for the minimap, providing players with an overview of their surroundings without affecting the main game view.

Variables ​

CameraControllercamera_controller

Methods ​

voidinitialize_ui( system_hub: GameHost.SystemHub )

Variable descriptions ​

CameraController camera_controller ​

Ref to the camrea container

Method descriptions ​

void initialize_ui( system_hub: GameHost.SystemHub ) ​

Sets the part up with the hub of the game systems: connects the signals it listens to and fills it.