참치김밥은 최고의 한식이다

[Unity] UI 부드럽게 할 때 꿀팁 본문

Unity

[Unity] UI 부드럽게 할 때 꿀팁

l__j__h 2023. 9. 1. 13:49

이전까지 나는 UI가 부드럽게 움직이거나, 튀어오르는 등의 동작을 일일이 코드로 구현하였다.

하지만 이렇게 하면 다른 사람이 코드를 이해하기가 어려워지고, 복잡해져서

위 문제를 해결할 수 있는 좋은 API를 기록 겸 적어놓으려 한다~~

 

DOTween

오브젝트의 부드러운 값 변경을 통해 애니메이션을 제작해야 할 경우,
쉽고 간편하게 다양한 효과를 제공하는 API

 

http://dotween.demigiant.com/documentation.php

 

DOTween - Documentation

Nomenclature Tweener A tween that takes control of a value and animates it. Sequence A special tween that, instead of taking control of a value, takes control of other tweens and animates them as a group. Tween A generic word that indicates both a Tweener

dotween.demigiant.com

 

자세한 사용법은 아래 블로그가 잘 정리해두셨다~ 감사합니다~!

https://m.blog.naver.com/dooya-log/221320177107

 

[Asset] Unity3D 'DOTween' 1 : 기본 기능과 팁

+23.07.26 내용 수정 및 보완 [ DOTween ] 오브젝트의 애니메이션 혹은 부드러운 값 변경 시 기존의 유...

blog.naver.com

 

+혹시 모를 미래의 나를 위해..

.SetEase(Ease easeType) 은

값 변경 시, 부드러움의 정도를 그래프로 주어주는 것!!

어떤 블로그 주인께서 직접 만든 그래프 표라고 함 사진 속에 출처 있음

728x90