Question by
nicklukawski · Feb 12, 2016 at 07:40 PM ·
script error
I have a problem with this script and an error appeared, does anyone know why?
Assets/MoveScene.js(9,39): BCE0005: Unknown identifier: 'newScene'.
pragma strict
var newscene : String;
function OnTriggerEnter(Col : Collider) { if(Col.CompareTag("Player")) { Application.LoadLevel(newScene); } }
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612063957im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
transformers script error 1 Answer
After converting c# Script, Unity is giving errors on multiple lines which were fine before. 0 Answers
Need help with 4 scripting errors 0 Answers
Hi, I have two errors. I am sorry everyone but I am going crazy 1 Answer
Assets/Controller/Character Controller.cs(4,33): error CS8025: Parsing error 1 Answer