← Back to all add-ons

Minimap System

by CodeForge_Dev December 5, 2025
Mythril2D 3.0 UI gameplay

Overview

Add a real-time minimap to your Mythril2D game with:

  • Configurable size and position
  • Fog of war (reveals as the player explores)
  • Custom icons for NPCs, enemies, items, and points of interest
  • Zoom in/out controls
  • Circular or rectangular shape options

Installation

  1. Import the .unitypackage into your project
  2. Add the MinimapCanvas prefab to your scene (found in Assets/Addons/Minimap/Prefabs/)
  3. Attach MinimapTarget to any GameObject you want tracked on the map

Setup

Add the minimap camera to your scene:

// Attach to your main camera or a dedicated minimap camera
public class MinimapSetup : MonoBehaviour
{
    [SerializeField] private float minimapZoom = 20f;
    [SerializeField] private MinimapShape shape = MinimapShape.Circular;

    void Start()
    {
        MinimapManager.Instance.Configure(minimapZoom, shape);
    }
}

Icon Configuration

Define custom icons in the MinimapIcons ScriptableObject:

// Create via Assets → Create → Mythril2D → Minimap Icons
[CreateAssetMenu(menuName = "Mythril2D/Minimap Icons")]
public class MinimapIcons : ScriptableObject
{
    public Sprite playerIcon;
    public Sprite enemyIcon;
    public Sprite npcIcon;
    public Sprite itemIcon;
    public Sprite questIcon;
}

Requires Mythril2D 3.0 — This add-on uses the new camera system introduced in version 3.0.