You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
653 B
21 lines
653 B
using UnityEngine;
|
|
|
|
namespace Gamestrap
|
|
{
|
|
[CreateAssetMenu(fileName = "UI RadialGradient", menuName = "Gamestrap/Modifier/UI Effect/Radial Gradient")]
|
|
public class ModifierUIRadialGradient : ComponentModifier<RadialGradientEffect>
|
|
{
|
|
public Vector2 centerPosition;
|
|
public float radius;
|
|
public Color innerColor;
|
|
public Color outterColor;
|
|
|
|
public override void Apply(RadialGradientEffect target)
|
|
{
|
|
target.centerPosition = centerPosition;
|
|
target.radius = radius;
|
|
target.innerColor = innerColor;
|
|
target.outterColor = outterColor;
|
|
}
|
|
}
|
|
}
|