- Home /
Question by
Masterplayer · Jun 08, 2012 at 07:21 PM ·
errorcompilerparser
Parser Error.
using UnityEngine;
using System.Collections;
public class NewBehaviourScript : MonoBehaviour {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
}
}
{
void OnMouseEnter()
{
renderer.material.color = Color.cyan;
}
Comment
Answer by whydoidoit · Jun 08, 2012 at 07:25 PM
You brackets are in the wrong place:
using UnityEngine;
using System.Collections;
public class NewBehaviourScript : MonoBehaviour {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
}
void OnMouseEnter()
{
renderer.material.color = Color.cyan;
}
}
Your answer
Follow this Question
Related Questions
Unity Internal Compiler Error, not there in Editor 0 Answers
Error cs8025 script (parser error) How i can fix this? 1 Answer
Script Compiler error? 1 Answer
How to not compile un-used scripts ? 1 Answer
please help island demo compieler error 2 Answers