Toolbar with textures

How can i put textures in toolbar?

I’ve tried that script:

var toolbarInt = 0;

var Ryan : Texture;

var Joseph : Texture;

var Duff : Texture;

var William : Texture;

var toolbarStrings : Texture = [Ryan, Joseph, Duff, William];

function OnGUI () {

toolbarInt = GUI.Toolbar (Rect (25, 25, 250, 30), toolbarInt, toolbarStrings);

}

Sorry my english

1 Answer

1

It has to Texture2D;

Always remember to put 2D or 3D at the end of Texture.

  • Felipe