SpriteMask

public class L11 : MonoBehaviour
{
    // Start is called before the first frame update
    void Start()
    {
                //需要在SpriteRenderer中开启Mask Interaction选项
        //相关参数
        //Alpha Cutoff 如果Alpha包含半透明区域,可以手动调整显示区域的分界线
        //Custom Range 自定义遮罩范围 大于等于back小于front就会被遮罩影响
    }
}
posted @ 2025-03-28 09:23  cannedmint  阅读(15)  评论(0)    收藏  举报