How can I set an icon to my character and to all the other enemyes in the minimap??

I've created a minimap, but all I can see is the character, while I'd like to have icons for each character , such as cod(call of duty)

1 Create 3D textures as icons and attached them to each game-object. Make sure the facing is upwards.

2 And you need to set these icons to a different layer, like "Icons".

3 You don't want your main camera to see these icons, so you untick this layer in cullingMask of main camera.

4 Add this layer to cullingMask of minimap camera so it will render the these icons. (you can make it only render terrain and icons by manipulating layers in cullingMask)

it’s simple. here’s what to do:

  1. make an empty gameobject and put a halo component in the gameobject
  2. make colors for the halo (i used blue for the player and red for enemies)
    3. parent the gameobject to your minimap camera
    4. make a layer (i called mine “minimap only”)
    5. assign the layer in your player’s camera and make sure that minimap only layer is the only one not selected (in the camera component, not the transform)
    6. make sure the minimap only layer is the only layer selected in your minimap camera (in the transform, not the camera component)
    u should now have an icon of your player on your minimap. do the same thing with the enemy icons, but dont parent them with the minimap. parent the icons with the enemy models.
    hope it helps!