浏览一下 GitHub ,找了找UGUI开源的东西 https://github.com/WestHillApps/uGUI-Effect-Tool
发现了 uGuiEffectTool (包括Blend【意义不大】 和 渐变)
这个是原始图片
Blend的效果:
Blend的代码:
using UnityEngine;
using System.Collections.Generic;
using UnityEngine.UI;
namespace UiEffect
{
[AddComponentMenu ("UI/Effects/Blend Color")]