![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C#
文章平均质量分 60
Nice_66
这个作者很懒,什么都没留下…
展开
-
优化一个Image遮罩,去除掉颜色组件只保留点击响应,透明的且让鼠标点不下去。
using System;using System.Collections.Generic;using UnityEngine;using XLua;namespace UnityEngine.UI{ public class Empty4Raycast : MaskableGraphic { protected Empty4Raycast() { useLegacyMeshGeneration = false; ...原创 2021-05-13 11:18:18 · 330 阅读 · 0 评论 -
U3D滑块中添加粒子特效,出现挡不住的情况,自己写个Mask来挡住
usingSystem.Collections;usingSystem.Collections.Generic;usingUnityEngine;usingUnityEngine.Rendering;usingUnityEngine.UI;publicclassUIParticle:MonoBehaviour{privatestaticCamerauiCamera;privateclassMatEntry{...原创 2021-03-17 23:00:47 · 555 阅读 · 0 评论