250x250
Rainbow🌈Coder
My dev Note📒
Rainbow🌈Coder
전체 방문자
오늘
어제
  • 분류 전체보기 (411)
    • 공지사항 (0)
    • Debugger (10)
      • Visual Studio Debugger (1)
      • Chrome DevTools (3)
      • Visual Studio Code Debugger (4)
      • eclipse (1)
      • intelliJ (1)
    • OOP (2)
      • OOP (2)
    • TypeScript (54)
      • 타입스크립트 TypeScript (54)
    • Javascript (87)
      • Javascript (45)
      • Node.js (19)
      • React (5)
      • FE 개발환경설정 (3)
      • React와 Node 같이 때려잡기 (6)
      • next.js (2)
      • pixi.js (7)
    • 마크업 (23)
      • Html & Css (23)
    • C# (80)
      • C# (12)
      • 이것이 C#이다 (68)
    • C++ (30)
      • c++ (27)
      • win api (3)
    • Unity (18)
      • Unity(기초) (8)
      • Unity(C#중급) (5)
      • 유니티 포톤(네트워크) (4)
      • unity c# MyCode (1)
    • Java & Spring (29)
      • Java (11)
      • 스프링 (8)
      • Java Algorithm (9)
      • Javs Data Structures (1)
    • 자료구조와 알고리즘 (15)
      • 자료구조 (5)
      • 알고리즘 (10)
    • 형상관리 (15)
      • Git (11)
      • 소스트리 (3)
    • 그래픽스 (7)
      • WebGl (7)
    • AWS (3)
      • aws (3)
    • 리눅스 (5)
      • 리눅스 (5)
    • 책 리뷰 (13)
      • 클린코드(책리뷰) (3)
      • 유지보수가능한코딩의기술C#편(책리뷰) (1)
      • 리팩토링(자바스크립트판) (9)
    • Server (2)
      • 게임 서버(네트워크, 멀티쓰레드,OS) (2)
    • 설계, 아키텍쳐 (4)
    • 파이썬 (5)
    • 디자인패턴 (2)
    • mocha (2)
    • Jest (1)
    • Spine (1)
    • 인공지능 (1)
      • 혼자공부하는머신러닝+딥러닝 (1)

블로그 메뉴

  • 홈
  • 태그
  • 방명록

공지사항

인기 글

태그

  • 컴포지션
  • MySQL
  • ㅣㄷ
  • 위임

최근 댓글

최근 글

티스토리

hELLO · Designed By 정상우.
Rainbow🌈Coder

My dev Note📒

그래픽스/WebGl

[Spine][pixiJs] Api 사이트

2022. 5. 11. 18:58
728x90

<앞으로 자주 찾아봐야할 홈페이지>

스파인 api 사이트

http://ko.esotericsoftware.com/spine-api-reference#AnimationState-setAnimation

찾기 기능 이용해서 api 명세 확인, 번역기라도 돌려서…

 

이런식으로 

 

AnimationState Methods

addAnimation ( int trackIndex, string animationName, bool loop, float delay): TrackEntry

Queues an animation by name.

 

See addAnimation.

addAnimation ( int trackIndex, Animation animation, bool loop, float delay): TrackEntry

Adds an animation to be played after the current or last queued animation for a track. If the track is empty, it is equivalent to calling setAnimation.

  • delay If > 0, sets delay. If <= 0, the delay set is the duration of the previous track entry minus any mix duration (from the AnimationStateData) plus the specified delay (ie the mix ends at (delay = 0) or before (delay < 0) the previous track entry duration). If the previous entry is looping, its next loop completion is used instead of its duration.
  • <return> A track entry to allow further customization of animation playback. References to the track entry must not be kept after the dispose event occurs.
addEmptyAnimation ( int trackIndex, float mixDuration, float delay): TrackEntry

Adds an empty animation to be played after the current or last queued animation for a track, and sets the track entry's mixDuration. If the track is empty, it is equivalent to calling setEmptyAnimation.

 

See setEmptyAnimation.

  • delay If > 0, sets delay. If <= 0, the delay set is the duration of the previous track entry minus any mix duration plus the specified delay (ie the mix ends at (delay = 0) or before (delay < 0) the previous track entry duration). If the previous entry is looping, its next loop completion is used instead of its duration.
  • <return> A track entry to allow further customization of animation playback. References to the track entry must not be kept after the dispose event occurs.
addListener ( AnimationStateListener listener): void

Adds a listener to receive events for all track entries.

apply ( Skeleton skeleton): bool

Poses the skeleton using the track entry animations. The animation state is not changed, so can be applied to multiple skeletons to pose them identically.

  • <return> True if any animations were applied.
clearListenerNotifications ( ): void

Discards all listener notifications that have not yet been delivered. This can be useful to call from an AnimationStateListener when it is known that further notifications that may have been already queued for delivery are not wanted because new animations are being set.

clearListeners ( ): void

Removes all listeners added with addListener.

clearNext ( TrackEntry entry): void

Removes the next and all entries after it for the specified entry.

clearTrack ( int trackIndex): void

Removes all animations from the track, leaving skeletons in their current pose.

 

It may be desired to use setEmptyAnimation to mix the skeletons back to the setup pose, rather than leaving them in their current pose.

clearTracks ( ): void

Removes all animations from all tracks, leaving skeletons in their current pose.

 

It may be desired to use setEmptyAnimations to mix the skeletons back to the setup pose, rather than leaving them in their current pose.

getCurrent ( int trackIndex): TrackEntry

Returns the track entry for the animation currently playing on the track, or null if no animation is currently playing.

  • <return> May be null.
removeListener ( AnimationStateListener listener): void

Removes the listener added with addListener.

setAnimation ( int trackIndex, string animationName, bool loop): TrackEntry

Sets an animation by name.

 

See setAnimation.

setAnimation ( int trackIndex, Animation animation, bool loop): TrackEntry

Sets the current animation for a track, discarding any queued animations. If the formerly current track entry was never applied to a skeleton, it is replaced (not mixed from).

  • loop If true, the animation will repeat. If false it will not, instead its last frame is applied if played beyond its duration. In either case trackEnd determines when the track is cleared.
  • <return> A track entry to allow further customization of animation playback. References to the track entry must not be kept after the dispose event occurs.

 

https://pixijs.download/dev/docs/index.html

pixijs api 사이트도 앞으로 자주 찾아보게 될 것. 

728x90

'그래픽스 > WebGl' 카테고리의 다른 글

[2D WebGL][pixiJS] Renderer, Ticker, & Stage  (0) 2022.05.13
[2D WebGL][pixi.Js] 세부사항  (0) 2022.05.10
[2D WebGL][pixiJS] Getting Started!  (0) 2022.05.09
[2D WebGL][pixiJS] Architecture Overview  (0) 2022.05.09
[3D WebGL][three.js] three.js 프로젝트 시작해보기  (0) 2022.05.09
    '그래픽스/WebGl' 카테고리의 다른 글
    • [2D WebGL][pixiJS] Renderer, Ticker, & Stage
    • [2D WebGL][pixi.Js] 세부사항
    • [2D WebGL][pixiJS] Getting Started!
    • [2D WebGL][pixiJS] Architecture Overview
    Rainbow🌈Coder
    Rainbow🌈Coder
    몰라도 결국은 아는 개발자, 그런 사람이 되기 위한 매일의 한걸음

    티스토리툴바