Resizing GUIs depening on screen resolution

hey guys,
so im a bit stuck on resizing resolution depending on GUI
so ive got a GUI.Box(new Rect( value, value, value, value), “”) that is generated when you press a key
and i cant seem to work out how to resize it depending on the screen.width and screen.height?
ive looked around and seen posts talking about using the GUI.Matrix or something but i cant seem to work out how to apply it to my box
can anyone help?
thanks

anyone got anything?

If you want to make in game UI, don’t use IMGUI (GUI.Box, GUI.label…) which is good for editor UI: Unity - Manual: Immediate Mode GUI (IMGUI)
Better to use this one:
Redirecting to latest version of com.unity.ugui