유니티/에셋

[ Unity ] 유니티 Dotween 에셋

Hexs 2023. 10. 7. 15:41
반응형

 

https://assetstore.unity.com/packages/tools/animation/dotween-hotween-v2-27676

 

DOTween (HOTween v2) | 애니메이션 도구 | Unity Asset Store

Use the DOTween (HOTween v2) tool from Demigiant on your next project. Find this & more animation tools on the Unity Asset Store.

assetstore.unity.com

 

RM_ErrorMessage.transform.DOPunchRotation(new Vector3(0, 0, 10), 0.5f, 30, 90).SetEase(Ease.OutQuad).OnComplete(() =>
        {

            RM_ErrorMessage.SetActive(false);
        });

RM_ErrorMessage 라는 오브젝트는

- > DOPunchRotation(new Vector3(0, 0, 10), 0.5f, 30, 90) 를 수행하며 Ease는 OutQuad 형식을 사용함

- > OnComplete()를 사용하여 0.5초간의 Punch명령이 종료되면 RM_ErrorMessage를 Fasle 시킨다.

반응형