- Home /
Question by
sarim987 · Oct 13, 2014 at 03:35 PM ·
guibuttonguitextureguibutton
Convert GUI Button to GUI Texture
Hello! I've been trying to convert this into a GUI Texture but i cant seem to find a way to actually do it. I currently have this code but when i try it on mobile, the multitouch part of it does not work. Thanks for your help.
public var gastexture : Texture2D;
function OnGUI() {
GUI.backgroundColor = Color.clear;
if (GUI.RepeatButton (Rect (Screen.width/1.5, Screen.height/1.5 - 80, 225, 150), gastexture))
{
motorInput = 1;
}
else
motorInput = 0;
Comment
Your answer
Follow this Question
Related Questions
Move GUI elements. 0 Answers
Gui Button Image 1 Answer
Reduce Draw call for Multiple GUI Textures with same Texture 1 Answer
Overlapping GUITexture UI Buttons 2 Answers