i need to use My image as gui button .how can i overcome this .pls help me
thanks in advance
i need to use My image as gui button .how can i overcome this .pls help me
thanks in advance
Texture2D ImageName = (Texture2D)Resources.Load(“Name of Image you wish to load”);
GUI.Button(new rect(X,Y,Width,Height),ImageName);
if you want both text and picture then -
GUI.Button(new rect(X,Y,Width,Height),new GUIContent(“Enter Text here”,ImageName));
~Popper