본문 바로가기

Unity/Unity2D

Spine 오브젝트 스프라이트의 색 변경

            playerSkeletonSprite.gameObject.GetComponent<SkeletonMecanim>();
            playerSkeletonSprite.skeleton.SetColor(Color.red);

<SkeletonAnimation> 혹은 <SkeletonMecanim>을 불러와 색을 수정한다. 

스파인 오브젝트를 생성하면서 선택한 방식대로 컴포넌트를 지정하면 된다.

 

'Unity > Unity2D' 카테고리의 다른 글

점프 시 조정해야 할 요소  (0) 2024.06.14
Unity-Spine 연동하기  (0) 2024.04.05
Tilemap 크기 바꾸기  (0) 2023.10.30