浏览一下 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")]
[RequireComponent (typeof (Graphic))]
public class BlendColor : BaseVertexEffect
{
public enum BLEND_MODE
{
Multiply,
Additive,
Subtractive,
Override,
}
public BLEND_MODE blendMode = BLEND_MODE.Multiply;
public Colo
...
继续阅读
(33)