ZepetoinputControl
39 분
형식 설명 playeractions /#playeractions 이동, 점프, 더블 점프 등 플레이어 전용 액션을 처리합니다 cameraactions /#cameraactions zepeto world 내 카메라 관련 입력 액션을 관리합니다 uiactions /#uiactions ui 관련 다양한 입력 액션을 처리합니다 iplayeractions /#iplayeractions 플레이어 액션 인터페이스입니다 icameraactions /#icameraactions 카메라 액션 인터페이스입니다 iuiactions /#iuiactions ui 액션 인터페이스입니다 playeractions class 이동, 점프, 더블 점프 등 플레이어 전용 액션을 처리합니다 속성 이름 형식 설명 move inputaction 플레이어 이동에 대한 입력 액션을 가져옵니다 jump inputaction 플레이어 점프에 대한 입력 액션을 가져옵니다 doublejump inputaction 플레이어 더블 점프에 대한 입력 액션을 가져옵니다 enabled boolean 플레이어 입력 액션의 현재 활성화 상태를 나타냅니다 메서드 get get() → inputactionmap 플레이어 액션에 연결된 inputactionmap 을 가져옵니다 반환값 inputactionmap — 플레이어 액션의 inputactionmap 입니다 enable enable() → void 플레이어 액션 맵을 활성화하여 플레이어 입력 액션을 사용할 수 있도록 합니다 disable disable() → void 플레이어 액션 맵을 비활성화하여 플레이어 입력 액션을 사용할 수 없도록 합니다 setcallbacks setcallbacks(instance iplayeractions) → void instance 의 콜백 메서드를 각 플레이어 액션에 연결합니다 매개변수 형식 설명 instance iplayeractions /#iplayeractions iplayeractions 인터페이스를 구현한 객체입니다 cameraactions class zepeto world 내 카메라 관련 입력 액션을 관리합니다 속성 이름 형식 설명 scroll inputaction 카메라 스크롤에 대한 입력 액션을 반환합니다 primarytouchposition inputaction 첫 번째 터치의 위치를 감지하는 입력 액션을 반환합니다 primarytouchcontact inputaction 첫 번째 터치의 접촉을 감지하는 입력 액션을 반환합니다 secondarytouchposition inputaction 두 번째 터치의 위치를 감지하는 입력 액션을 반환합니다 secondarytouchcontact inputaction 두 번째 터치의 접촉을 감지하는 입력 액션을 반환합니다 tertiarytouchposition inputaction 세 번째 터치의 위치를 감지하는 입력 액션을 반환합니다 tertiarytouchcontact inputaction 세 번째 터치의 접촉을 감지하는 입력 액션을 반환합니다 enabled boolean 카메라 액션 맵 내 입력 액션의 현재 활성화 여부를 나타냅니다 메서드 get get() → inputactionmap zepetoinputcontrol 에서 카메라 액션에 연결된 inputactionmap 을 가져옵니다 반환값 inputactionmap — 카메라 관련 입력 액션의 모음인 inputactionmap 객체를 반환합니다 enable enable() → void 카메라 액션 맵 내 모든 입력 액션을 활성화합니다 disable disable() → void 카메라 액션 맵 내 모든 입력 액션을 비활성화합니다 setcallbacks setcallbacks(instance icameraactions) → void 카메라 액션의 콜백 인터페이스를 설정하여 액션 핸들러를 외부에서 구현할 수 있도록 합니다 매개변수 형식 설명 instance icameraactions /#icameraactions icameraactions 인터페이스를 구현한 객체입니다 uiactions class ui 관련 다양한 입력 액션을 처리합니다 속성 이름 형식 설명 navigate inputaction 메뉴나 목록과 같은 ui 요소 간의 이동을 처리하는 액션입니다 일반적으로 방향키, 조이스틱 조작, 스와이프 제스처 등 방향 입력을 사용합니다 submit inputaction 강조 표시된 ui 요소를 확인하거나 선택하는 액션으로, 'enter' 또는 'ok' 명령에 해당합니다 cancel inputaction 취소 또는 '뒤로' 명령에 해당하는 액션으로, 이전 메뉴로 돌아가거나 현재 열려 있는 ui 창을 닫을 수 있습니다 point inputaction ui의 포인팅 동작을 처리합니다 마우스 커서를 움직이거나 터치스크린에서 손가락 접촉 지점을 옮기는 것과 유사합니다 click inputaction ui 요소를 클릭하는 액션으로, 마우스 클릭이나 화면 탭에 해당합니다 scrollwheel inputaction 마우스 휠이나 터치패드 제스처 등의 스크롤 입력을 받는 데 사용하는 액션입니다 middleclick inputaction 마우스 가운데 버튼을 누르는 액션입니다 rightclick inputaction 마우스 오른쪽 클릭에 해당하는 액션으로, 주로 컨텍스트 메뉴를 열거나 보조 동작을 실행할 때 사용합니다 trackeddeviceposition inputaction vr 컨트롤러나 모션 트래킹 장치 등 추적 대상 기기의 위치 데이터를 가져옵니다 trackeddeviceorientation inputaction 기기의 방향을 추적합니다 주로 vr 또는 ar 환경에서 기기가 가리키는 방향을 감지할 때 사용합니다 enabled boolean ui 액션이 현재 활성화되어 입력에 반응하는 상태인지 나타냅니다 메서드 get get() → inputactionmap ui 액션에 연결된 inputactionmap 을 반환합니다 반환값 inputactionmap — 반환된 inputactionmap 에는 zepetoinputcontrol 클래스에서 ui 상호작용을 위해 정의된 모든 입력 액션이 포함됩니다 enable enable() → void ui 입력 액션을 활성화하여 사용자 입력에 반응하도록 합니다 disable disable() → void ui 입력 액션을 비활성화하여 사용자 입력에 반응하지 않도록 합니다 setcallbacks setcallbacks(instance iuiactions) → void ui 액션의 콜백 메서드를 등록합니다 instance 가 구현한 iuiactions 인터페이스의 정의에 따라 각 액션을 해당 이벤트 핸들러에 연결합니다 매개변수 형식 설명 instance iuiactions /#iuiactions iuiactions 인터페이스를 구현한 객체입니다 iplayeractions interface 플레이어 액션 인터페이스입니다 메서드 onmove onmove(context callbackcontext) → void 이동 시 호출됩니다 매개변수 형식 설명 context callbackcontext 콜백 컨텍스트 onjump onjump(context callbackcontext) → void 점프 시 호출됩니다 매개변수 형식 설명 context callbackcontext 콜백 컨텍스트 ondoublejump ondoublejump(context callbackcontext) → void 더블 점프 시 호출됩니다 매개변수 형식 설명 context callbackcontext 콜백 컨텍스트 icameraactions interface 카메라 액션 인터페이스입니다 메서드 onscroll onscroll(context callbackcontext) → void 스크롤 시 호출됩니다 매개변수 형식 설명 context callbackcontext 콜백 컨텍스트 onprimarytouchposition onprimarytouchposition(context callbackcontext) → void 첫 번째 터치 위치가 변경될 때 호출됩니다 매개변수 형식 설명 context callbackcontext 콜백 컨텍스트 onprimarytouchcontact onprimarytouchcontact(context callbackcontext) → void 첫 번째 터치가 접촉될 때 호출됩니다 매개변수 형식 설명 context callbackcontext 콜백 컨텍스트 onsecondarytouchposition onsecondarytouchposition(context callbackcontext) → void 스크롤 시 호출됩니다 매개변수 형식 설명 context callbackcontext 콜백 컨텍스트 onsecondarytouchcontact onsecondarytouchcontact(context callbackcontext) → void 두 번째 터치가 접촉될 때 호출됩니다 매개변수 형식 설명 context callbackcontext 콜백 컨텍스트 ontertiarytouchposition ontertiarytouchposition(context callbackcontext) → void 세 번째 터치 위치가 변경될 때 호출됩니다 매개변수 형식 설명 context callbackcontext 콜백 컨텍스트 ontertiarytouchcontact ontertiarytouchcontact(context callbackcontext) → void 세 번째 터치가 접촉될 때 호출됩니다 매개변수 형식 설명 context callbackcontext 콜백 컨텍스트 iuiactions interface ui 액션 인터페이스입니다 메서드 onnavigate onnavigate(context callbackcontext) → void 탐색 시 호출됩니다 매개변수 형식 설명 context callbackcontext 콜백 컨텍스트 onsubmit onsubmit(context callbackcontext) → void 확인 시 호출됩니다 매개변수 형식 설명 context callbackcontext 콜백 컨텍스트 oncancel oncancel(context callbackcontext) → void 취소 시 호출됩니다 매개변수 형식 설명 context callbackcontext 콜백 컨텍스트 onpoint onpoint(context callbackcontext) → void 포인팅 시 호출됩니다 매개변수 형식 설명 context callbackcontext 콜백 컨텍스트 onclick onclick(context callbackcontext) → void 클릭 시 호출됩니다 매개변수 형식 설명 context callbackcontext 콜백 컨텍스트 onscrollwheel onscrollwheel(context callbackcontext) → void 스크롤 휠 조작 시 호출됩니다 매개변수 형식 설명 context callbackcontext 콜백 컨텍스트 onmiddleclick onmiddleclick(context callbackcontext) → void 가운데 클릭 시 호출됩니다 매개변수 형식 설명 context callbackcontext 콜백 컨텍스트 onrightclick onrightclick(context callbackcontext) → void 오른쪽 클릭 시 호출됩니다 매개변수 형식 설명 context callbackcontext 콜백 컨텍스트 ontrackeddeviceposition ontrackeddeviceposition(context callbackcontext) → void 추적 대상 기기의 위치가 변경될 때 호출됩니다 매개변수 형식 설명 context callbackcontext 콜백 컨텍스트 ontrackeddeviceorientation ontrackeddeviceorientation(context callbackcontext) → void 추적 대상 기기의 방향이 변경될 때 호출됩니다 매개변수 형식 설명 context callbackcontext 콜백 컨텍스트