How can I display a texture onto the screen without using a Rect? I want to use GUILayout but it seems the only option for that is to use a GUI Box which makes my texture look like this:
See the box around the texture? I don’t need that.
I can achive the look I want with a GUITexture component (from GameObject > Create Other > GUI Texture) like this…
Create a new GUISkin by right clicking and selecting Create->GUI Skin.
Then, create a new entry in its Custom Styles and set its Image Position setting to ImageOnly:
Then, draw your heart with a style override.
var mySkin:GUISkin;
function OnGUI(){
GUI.skin=mySkin;
GUILayout.Box(myRect,myTexture,"nameOfCustomStyle");
}