Quantcast
Channel: Questions in topic: "error"
Viewing all articles
Browse latest Browse all 7934

Help Solve This

$
0
0
Please help solve this script error it keeps saying unexpected symbol { but I dont see anything wrong. Its a simple texture button script. using UnityEngine; using System.Collections; public class GUIButton : MonoBehaviour { public Texture2D texture = null; private void OnGUI(){ if(GUI.Button(new Rect(Screen.width/2 -63,Screen.height/2 -63,texture.width, texture)){ Application.LoadLevel(1); } } }

Viewing all articles
Browse latest Browse all 7934

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>