I’m new to Unity and scripting… I truly appreciate the help.
using UnityEngine;
public class minimapcee : MonoBehaviour {
public RenderTexture MiniMapTexture;
public Material MiniMapMaterial;
private float offset;
void Awake()
{
offset = 10;
}
void OnGUI()
{
if(Event.current.type == EventType.Repaint)
Graphics.DrawTexture(new Rect(Screen.width - 256 - offset, 256 + offset, 256, 256), MiniMapTexture, MiniMapMaterial);
}
}