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             
            
                关注
                打赏
            
            
        [UGUI进阶知识十五]图片渐变色
        立即登录/注册
         
    
     
     
        微信扫码登录

