GUITexture.position for specific camera

Hey,

I have a scene in which I have two Cameras. So basically it’s the main camera and a mini-map camera. Now I want to put a button into the mini-map camera, which will always be positioned in the lower right of it. Does anybody have any idea on how I could do that?
I know I could position it at the start, but I want to be able to resize the mini-map during the game, so then the mini-map wouldn’t be at the same place anymore.

GUITexture is a GUI object, so the transform.position of the GUITexture is in screen coordinates, and not in world coordinates like any other object.

So all you have to do is set the GUITexture’s position to the relative position in the screen that you want it to be. 0,0 is bottom left, and 1,1 is top right. So if you want it in the lower right try something around 0.9,0.1. Play with the values and look at the game view to see where it will be positioned.

Note that since it’s an absolute position in the screen, it doesn’t matter at all which camera displays it. It will be displayed in the same location regardless of the location or rotation of the cameras.