← Back to all add-ons
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
- Import the
.unitypackageinto your project - Add the
MinimapCanvasprefab to your scene (found inAssets/Addons/Minimap/Prefabs/) - Attach
MinimapTargetto 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.