Unity MiniMap feature without RenderTexure and Camera
Does not require additional cameras or RenderTexture. In this way, you do not need to use different layers and layermasks, overhead cameras, or RenderTexture assets.
Video 1 |
---|
How to Import:
- Add to manifest.json
"com.arikan.minimap" : "https://github.com/bilal-arikan/UnitySimpleMiniMap.git",
How to Use:
var minimap = FindObjectOfType<Arikan.MiniMapView>();
// Red object example
var img = minimap.FollowCentered(obj1Centered.transform);
img.color = obj1Centered.material.color;
// Green object example
var img2 = minimap.Follow(obj2.transform);
img2.color = obj2.material.color;
// Blue object example
var img3 = minimap.Follow(obj3.transform, obj3Sprite);
img3.color = obj3.material.color;
Import Demo Unity Package