Ok, I found these shaders from previous threads.
And for my camera I don’t want to use a render to texture, i’m using a logic close to the radars on wiki.
When the player move forwards, the minimap do a translation backwards with the (same amout to move * Scaling)etc.
But is iT possible to use a material in my GUI?
Or export the result of my shader to a texture and use this texture in my GUI ?
As said in the link you’ve posted, gui elements aren’t GameObjects and cannot have a material.
There is way to do what you want without rendering to a rendertexture
Create a plane, assign a new Layer for it, for example ‘UI’, this will be your radar
Create a new camera in the scene (call it for example UICamera), set it to be Orthographic, set Depth to 1 and Culling Mask to UI (this means that UI Camera will draw GameObjects which have UI Layer) and Clear Flags - Depth Only.
You should have now two cameras - MainCamera and UICamera, also don’t forget to unselect UI Layer in MainCamera’s Culling Mask
Position radar plane to be in front of the UI Camera
Assign your handy material to that plane
And there you go, you have a gui which can have your own created material, and no matter how you move MainCamera, your radar will always be in front, because UICamera won’t move