1. Image 오브젝트 생성
  2. 거기에 Animator와 Animation을 추가
  3. Animation에 Sprite 파츠를 전부 추가
블로그 이미지

RIsN

,
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

/// <summary>
/// Alpha값(0.1f) 이상만 버튼 클릭되도록 하는 부착 스크립트
/// </summary>
public class ATTACHAlphaButton : MonoBehaviour
{
    public float iAlphaThreshhold = 0.1f;

    private void Start()
    {
        this.GetComponent<Image>()
            .alphaHitTestMinimumThreshold = this.iAlphaThreshhold;
    }
}
블로그 이미지

RIsN

,