unity3d - UCE0001: ';' expected. Insert a semicolon at the end -
i'm trying make gui.drawtexture clickable, error said "assets/script/guisettingonmenu.js(46,13): uce0001: ';' expected. insert semicolon @ end." can please me?
//make clickable rect onbutton = new rect(640, 250, 80, 40); gui.drawtexture(onbutton, onnormal); if(input.getmousebutton(0)){ if (onbutton.contains(event.current.mouseposition)){ gui.drawtexture(onbutton, onhover); } }
yup c# syntax in js goes
var onbutton : rect = new rect(640, 250, 80, 40);
Comments
Post a Comment