using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
///
/// UI渐变特效,继承BaseMeshEffect函数
///
public class GradientEffect : BaseMeshEffect
{
//设置渐变色
public Color topColor = Color.white;
public Color botttomColor = Color.white;
//重写ModifyMesh函数
public override void ModifyMesh(VertexHelper vh)
{
int count = vh.currentVertCount;
if (count == 0)
{
return;
}
List vertexs = new List();
for (int i = 0; i
关注
打赏
热门博文