rokojori_action_library/Runtime/VFX/GradientGenerator/CustomGradient.cs

33 lines
700 B
C#
Raw Normal View History

2026-02-12 09:48:23 +00:00
using Godot;
using System.Collections.Generic;
namespace Rokojori
{
[Tool]
[GlobalClass, Icon("res://addons/rokojori_action_library/Icons/Flash.svg") ]
public partial class CustomGradient:GradientGenerator
{
[Export]
public Gradient gradient;
public override Gradient GetGradient()
{
return gradient;
}
[Export]
public float repeat = 1f;
public override float GetRepeat()
{
return repeat;
}
[Export]
public GradientExtensions.GradientRepeatMode repeatMode = GradientExtensions.GradientRepeatMode.Clamp;
public override GradientExtensions.GradientRepeatMode GetRepeatMode()
{
return repeatMode;
}
}
}