CREATE YOUR WORLD
Players & Characters : Advance...
Quarter View Example
4min
ZEPETO 캐릭터 컨트롤은 V-Pad 대신 Unity의 새로운 입력 시스템을 사용하도록 사용자 정의할 수 있습니다.
이것은 쿼터 뷰 컨트롤 설정의 예입니다.

카메라를 쿼터 뷰로 설정합니다 (이것은 예시이므로, 프로젝트에 맞게 카메라 설정을 수정해 주세요).
이 시점에서 카메라의 태그는 MainCamera로 설정되어야 합니다.

쿼터 뷰에 대한 새로운 InputAction을 정의함으로써, 터치 스크린을 통해 캐릭터의 움직임을 제어할 수 있습니다.
Create > Input Actions를 선택하고 파일 이름을 QuarterViewActions로 설정합니다.
- 이동
- 액션 유형 : 통과
- 이동 트리거
- 액션 유형 : 버튼

계층 구조 > 빈 객체 만들기 후, 파일 이름을 QuarterViewController로 변경합니다.
QuarterViewController 객체에서 구성 요소 추가를 선택하고 플레이어 입력을 추가합니다.

방금 생성한 QuarterView 작업을 작업 목록에 드래그하여 연결합니다.
동작을 Unity 이벤트 호출로 변경합니다.

터치 스크린 입력을 통해 캐릭터의 움직임 방향을 계산하는 스크립트를 작성하세요.
Create > ZEPETO > TypeScript를 선택하고 이름을 QuarterView Controller로 변경하세요.
QuarterView Controller 객체에 스크립트를 추가합니다.