How do I create a mini map using Unity 4.6 GUI

Hello Everyone,

I have been researching on a way to create a mini map using Unity 4.6 beta GUI features. As of today I have a second camera that acts like a mini map but I cannot seem to find a way to attach it to a GUI Panel.

Does anyone have any ideas on how to approach this.

I am currently scripting in C#.

I think I read that camera in camera is a Unity Pro feature. You might need to render a seperate new image, based on the players position - unless you've got Pro. Not positive though.

1 Answer

1

If you have pro you can output the camera to a render texture. Then use that texture as an image in your GUI. Otherwise you’ll have to fake it by attaching a camera space canvas to your minimal camera.

Perfect thank you very much. The rendered texture worked great with a raw image in the panel.

Could you share an example?