2016. 2. 28. 23:41



가장 먼저 상단에 

using UnityEngine.SceneManagement;

을 추가 해줍니다.



유니티는 더이상 Application.LoadLevel 을 사용하지 않습니다.


대신 밑의 코드를 참고하세요




1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
using UnityEngine;
using UnityEngine.SceneManagement;
using System.Collections;
 
/**
@class SceneExample.cpp
@Date 2016/02/28
@author 조원우(jjgaa2@naver.com)
@brief 씬 매니저 사용
*/
public class SceneExample: MonoBehaviour {
 
    public void NextScene()
    {
        SceneManager.LoadScene("SceneName");
    }
 
}
 
 
cs


Posted by 시리시안