찾기
내용으로 건너뛰기
추적
문서의 이전 판을 선택했습니다!
저장하면 이 자료로 새 판을 만듭니다.
미디어 파일
======Using Animation Events====== ''Animation View''는 사용자가 ''Animation Events''를 ''Animation Clips''에 추가하도록 할 수 있습니다. Animation Events는 사용자가 애니메이션을 재생하는 것의 일환으로 ''SendMessage''와 유사한 스크립트 함수를 부를 수 있게 합니다 ''Animation Events'' 는 파라미터를 자기고 있지 않거나 혹은 한 개만 가지고 있는 함수를 지원합니다. 그 파라미터는 //float//, //string//, //object reference// 또는 //AnimationEvent// 일 수 있습니다. //AnimationEvent//를 파라미터로 취하는 함수의 경우에 //float//, //string// 그리고 //object reference//가 지정될 수 있습니다. 이러한 세가지는 //AnimationEvent//의 멤버 변수로서 전달될 수 있습니다 <file csharp> // This JavaScript function can be called by an Animation Event function PrintFloat (theValue : float) { Debug.Log ("PrintFloat is called with a value of " + theValue); } </file> An ''Animation Event'' can be added to an Animation Clip at the currently previewed frame by clicking the **Event button** or at any given frame by double-clicking the **Event Line** at the frame where the ''Animation Event'' should be. It is also possible to add an ''Animation Event'' by right-clicking the **Event Line** and select **Add Event** from the context menu. Once placed, ''Animation Events'' can be dragged around with the mouse. It is also possible to select multiple ''Animation Events'' to drag at once. ''Animation Events'' can be deleted by selecting them and pressing **Delete**, or by right-clicking on them and selecting **Delete Event** from the context menu. ''Animation Event''는 현재 미리보이는 프레임에서 **Event button**을 클릭하는 것에 의해 또는 어떠한 주어진 프레임에서든 ''Animation Event''가 있어야만 하는 프레임에 있는 **Event Line**을 더블 클릭하는 것에 의해 Animation Clip에 추가될 수 있습니다. **Event Line**을 오른쪽 클릭하고 그 해당 메뉴에서 **Add Event** 를 선택하는 것에 의해 ''Animation Event''를 추가하는 것 또한 가능합니다. 일단 자리를 잡게 되면, ''Animation Events''를 마우스로 드래그할 수 있습니다. 한 번에 다수의 ''Animation Events''를 선택하고 드래그하는 것 또한 가능합니다. ''Animation Events''는 그들을 선택하고 **Delete**를 누르거나 또는 그들을 오른쪽 클릭하여 해당 메뉴에서 **Delete Event**를 선택하는 것에 의해 삭제되어 질 수 있습니다 {{:unity3d:AnimationEditorEventLine.png}}\\ //''Animation Events''가 **Event Line**에서 보입니다. **Event Line**을 오른쪽 클릭하거나 **Event button**을 사용해서 새로운 애니메이션을 추가하세요.// ''Animation Event''를 추가하는 것은 **Event Line**에 하나의 **표시(marker)**를 추가하게 되고 하나의 Animation Event 다이아로그를 열게 됩니다. 그 다이아로그에서 사용자는 어떤 스크립트 함수를 부를 것인지를 지정할 수 있고 그 함수로 전달되는 파라미터 값을 기입할 수 있습니다 {{:unity3d:AnimationEditorEventPopup.png}}\\ //''Animation Event'' 팝업창은 사용자가 어떤 함수를 부를지를 지정할 수 있도록 하고 파라미터 값들을 기입할 수 있도록 합니다.// ''Animation Clip''에서 모든 ''Animation Events''는 **Event Line**에서 **표시(markers)**로서 보여집니다. 사용자는 그 **표시(markers)** 위에 마우스 커서를 가져다 놓음으로서 특정 ''Animation Event''가 무엇을 하는지를 빠르게 살펴볼 수 있습니다. {{:unity3d:AnimationEditorEventTooltip.png}}\\ //**Animation Event marker**위에 마우스 커서를 가져다 놓으면 파라미터 값 뿐만 아니라 그것이 어떠한 함수를 부르는 지도 보여줄 것입니다.// {{tag>유니티 unity}} * 출처: [[http://unitykoreawiki.com/index.php?n=KrMain.animeditor-AnimationEvents|유니티코리아위키]] (CC BY-NC-SA 2.0)
2+1?
이 필드는 비어 있도록 유지하세요:
저장
미리 보기
취소
편집 요약
참고: 이 문서를 편집하면 내용은 다음 라이선스에 따라 배포하는 데 동의하는 것으로 간주합니다:
CC Attribution-Noncommercial-Share Alike 4.0 International
연결문서
Animation View Guide
애니메이션 스크립팅 Animation Scripting
유니티3D ( Unity3D )
Reference Manual
문서 도구
문서 보기
이전 판
연결문서
맨 위로
다크 모드로 보기
☀️
Toggle Menu
유니티3D ( Unity3D )
너두 고쳐두 됩니다.
사이트 도구
최근 바뀜
미디어 관리자
사이트맵
사용자 도구
등록
로긴
최근 수정된 문서
misuse_topical5
노박
unique_items
dinner_bell
deputy_beagle
ratslayer
one_for_my_baby
alerio
power_fist
제거됨
fixer
climb_ev_ry_mountain
companion
[장비 분실]
crashed_vertibird
brotherhood_t-51b_power_armor
marco
i_forgot_to_remember_to_forget
cateye