[Unity] How to change Scene 如何改變Unity場景教學

Some People think that change scene using  "String"

Such as Application.LoadLevel("MyNextScene");

This event will result in  error. So,We can see this picture(Look Right number)

很多人認為改變場景必須用路徑像是Application.LoadLevel("MyNextScene");,但其實不然

使用路徑反而會導致出錯,因此我們使用數字來切換場景,如下圖演示:

Of Course.You just need to change using number like this:

沒錯我們就看右邊對到哪個數字,即可切換哪個場景

Application.LoadLevel(0);

Application.LoadLevel(1);