버튼 입력에 따라 스크롤뷰가 포함된 UI창 전환
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class App : MonoBehaviour
{
public Button btn1;
public Button btn2;
public Button btn3;
public GameObject scrollview1;
public GameObject scrollview2;
public GameObject settingImage;
void Start()
{
this.btn1.onClick.AddListener(() =>
{
this.scrollview1.SetActive(true);
this.scrollview2.SetActive(false);
this.settingImage.SetActive(false);
});
this.btn2.onClick.AddListener(() =>
{
this.scrollview1.SetActive(false);
this.scrollview2.SetActive(true);
this.settingImage.SetActive(false);
});
this.btn3.onClick.AddListener(() =>
{
this.scrollview1.SetActive(false);
this.scrollview2.SetActive(false);
this.settingImage.SetActive(true);
});
}
}
|
'팀프로젝트 > R&D' 카테고리의 다른 글
2020.06.28. Shader_오브젝트 뒤에 가려진 물체 렌더링 (0) | 2020.06.28 |
---|---|
2020.06.28. Shader_Stencil Buffer, Culling & Depth Test, Pass, Blending (0) | 2020.06.28 |
2020.06.15. 조명 + 낮, 밤 Cycle 만들기 (0) | 2020.06.16 |
2020.06.14. Emission 모바일에 적용시키기 (0) | 2020.06.14 |
2020.06.14. 낮,밤 / 조명 (버튼) - Emission 이 쉐이더 눌러야 적용되던 것 해결 (0) | 2020.06.14 |