how can i make gui texture stays on it place ( in this case next to map) on whatever resoulution i choose?, i made it fit perfectly in unity, but when i start the game in my 1920x1080 resolution gui texture is far away from map
best way is playing with pixelInset ,
this code will do that
using UnityEngine;
using System.Collections;
public class MyClass : MonoBehaviour
{
public GUITexture myGuiTexture; // Drag you guitexture to here in the inspector
private Rect fullScreen;
void Start ()
{
fullScreen = new Rect(0,0, Screen.width , Screen.height);
myGuiTexture.transform.position = new Vector3(0,0,0);
myGuiTexture.pixelInset = fullScreen;
}
}
The script is simple, leave a comment for more explanation.