- Home /
error CS1519: Unexpected symbol `void' in class, struct, or interface member declaration?
how do i fix this error? im using C# and i tried looking at other questions about this but they didnt help. please could somebody help me fix this
code: using UnityEngine; using System.Collections;
public class Copy : MonoBehaviour {
public GameObject thing2bInstantiated; // This you assign in the inspector
public Quaternion.Euler
void OnMouseDown ()
{
Instantiate(thing2bInstantiated, new Vector3(5467,122,5146), Quaternion.Euler(90,46.709,0));
}
}
Comment
And those 5 errors are your errors that you need to solve.
Answer by ryandotdee · Feb 06, 2015 at 03:48 PM
public class Copy : MonoBehaviour {
public GameObject thing2bInstantiated; // This you assign in the inspector
void OnMouseDown ()
{
Instantiate(thing2bInstantiated, new Vector3(5467,122,5146), new Quaternion.Euler(90,46.709,0));
}
Your answer
Follow this Question
Related Questions
Ambient Script CS0163 1 Answer
Score no longer works after backing up my game 0 Answers
Why do I get these codes when starting the game? 0 Answers
Incremental game need help 1 Answer
Game Pad Joystick not working! 2 Answers