Animation
AddAnimationItem
애니메이션 추가
Example
Parameters
Name | Type | Description |
---|---|---|
ids | Array | Body IDs(Array or Number) |
startTime | Number | 시작 시간 |
duration | Number | 재생 시간 |
startColor | VIZCore.Color | 시작 색상 |
endColor | VIZCore.Color | 종료 색상 |
AddNoteAnimation
노트 애니메이션 키 등록
Example
Parameters
Name | Type | Description |
---|---|---|
key | String | Animation Key |
AddNoteAnimation2DTemplate
노트 애니메이션 템플릿 등록
Example
Parameters
Name | Type | Description |
---|---|---|
key | String | Animation Key |
noteId | Array | Note Id Array |
actionKind | Number | Action Kind |
duration | Number | Duration |
start | VIZCore.Vector3 | Start Position |
end | VIZCore.Vector3 | End Position |
Clear
애니메이션 데이터 초기화(삭제)
Example
ClearNoteAnimation
노트 애니메이션 초기화(삭제)
Example
EnableEvent
애니메이션 이벤트 제어 활성화 시 이벤트 발생
Example
Parameters
Name | Type | Description |
---|---|---|
enable | Boolean | 활성화/비활성화 |
GetPlayTime
애니메이션 재생 시간 반환
Example
Returns
Type | Description |
---|---|
Number | 재생 시간 |
Init
애니메이션 초기화
Example
IsAnimationPlay
애니메이션 재생 상태 확인
Example
Returns
Type | Description |
---|---|
Boolean | 재생 상태 |
Pause
애니메이션 일시 정지
Example
SetEventInterval
애니메이션 이벤트 발생 시간 설정
Example
Parameters
Name | Type | Description |
---|---|---|
val | Number | 이벤트 발생 시간(ms) |
SetPlayTime
애니메이션 재생 시간 설정
Example
Parameters
Name | Type | Description |
---|---|---|
tick | Number | Animation 재생 시간 |
SetRestoreStatus
애니메이션 재생 시 자동 색상 복원 설정
Example
Parameters
Name | Type | Description |
---|---|---|
enable | Boolean | 활성화/비활성화 |
SetStartDate
애니메이션 시작일 지정
Example
Parameters
Name | Type | Description |
---|---|---|
date | Date | 시작일 |
offset | Number | 재생시간(1초)에 따른 Date 변화량(Day) |
Start
애니메이션 시작
Example
StartNoteAnimation
노트 애니메이션 재생(시작)
Example
Stop
애니메이션 정지
Example
--- Event Listener ---
OnChangedFrameEvent
애니메이션 재생 이벤트 등록
Example
Parameters
Name | Type | Description |
---|---|---|
listener | Object | Event Listener |
OnChangedPlayTimeEvent
애니메이션 재생 시간 변경 이벤트 등록
Example
Parameters
Name | Type | Description |
---|---|---|
listener | Object | Event Listener |