Help with .PNG image in GUI

Please can someone help me out?

I’m trying to follow the tut on loading an image into a GUI button.

So I got the PNG I wanted (a small file showing a stop icon) and did Assets → Import New Asset. I can see it in the Inspector.

Next I created a GUI script, did a Texture2D variable and assigned the PNG to the variable in the Inspector. Then I did the OnGUI event and attached the script to the camera. I can see the button - but no image.

Am I doing something wrong?

I’d like to help but can’t find the tutorial you’re talking about… Can you give the code inside your OnGUI function or provide a link to the tutorial please?

Working code from one of my games:

var LaserIcon:Texture2D;

function OnGUI() {
	var LaserRect:Rect = Rect(400, 10, 64, 64);
	if (GUI.Button(LaserRect, LaserIcon)) {
		MyNetwork.FireLaser();
	}
}

Doh, nevermind.