1) 버튼 만들어주고!
2) 스크립트생성!
< ChangeScene.c#>
1
2
3
4
5
6
7
8
9
10
11
12
13
|
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class ChangeScene : MonoBehaviour
{
public void ClickChangeScene(string sceneName)
{
SceneManager.LoadScene(sceneName);
}
}
|
cs |
3) UICamera에 스크립트 추가
4) 버튼 onClick에 UICamera추가 -> 스크립트 설정 Scene이름 넣어야함,,^^ (CilickChangeScene 오타남)
'개발 > Unity' 카테고리의 다른 글
[Unity] occlusion culling (0) | 2019.05.16 |
---|---|
[Unity] Screen position out of view frustum (screen pos 0.000000, 0.000000, 2000.000000) (Camera rect 0 0 1019 744) (0) | 2019.05.09 |
[Unity] particle size control (0) | 2019.05.09 |
[Unity] vuforia) vuforia camera focus (0) | 2019.05.08 |
[Unity] android build settings (for mac) (0) | 2019.05.04 |