GameDevelop/Unity팀프로젝트

Unity 컷신에 애니메이션 넣기 (Dialogue System 연동)

도도돋치 2025. 7. 24. 21:06
Contents 접기
728x90

목표

  • Dialogue 대사가 바뀔 때마다
  • 자동으로 애니메이션 전환(색상, 움직임 등) 이 일어나도록 구현하기

예시

aText → 이미지 흰색으로 깜빡
bText → 이미지 파란색으로 바뀜
cText → 이미지 확대 연출 등장

 

 

애니메이션 만들기

 1. 대상 오브젝트 선택

예: 배경 이미지 또는 캐릭터 이미지

 

2. Animation 창 열기

Window → Animation → Animation

 

3. 애니메이션 Clip 만들기

  • 이름: aText, bText, cText (→ Dialogue Title과 동일하게)
  • Add Property  Image → Color 선택
  • 타임라인에 색상 키프레임 추가!
    • 0:00 → 흰색
    • 0:30 → 파란색
    • 1:00 → 분홍색
  • Loop Time 해제하기 

 

Unity에서 설정

  1. 오브젝트에 Animator 컴포넌트 연결
  2. ContinueAnimationChanger 스크립트 추가
  3. Animator 필드에 대상 드래그
  4. AnimationPairs에 아래처럼 설정
Title AnimationName
aText aText
bText bText
cText cText

 

 

Dialogue System Events 연결

  1. Dialogue Panel에 Dialogue System Events 컴포넌트 추가
  2. On Conversation Line (Subtitle) 
    ContinueAnimationChanger → PlayAnimationByTitle(Subtitle) 연결
728x90