rj-action-library/Runtime/Shading/Properties/Vector2PropertyName.cs

28 lines
555 B
C#
Raw Normal View History

2024-09-14 06:41:52 +00:00
using Godot;
using System.Reflection;
using System.Collections.Generic;
namespace Rokojori
{
[Tool]
[GlobalClass]
2025-01-03 12:09:23 +00:00
public partial class Vector2PropertyName : ShaderPropertyName
2024-09-14 06:41:52 +00:00
{
public void Set( Material material, Vector2 value )
{
2025-01-03 12:09:23 +00:00
_Set( material, value );
2024-09-14 06:41:52 +00:00
}
public Vector2 Get( Material material )
{
2025-01-03 12:09:23 +00:00
return _Get( material, Vector2.Zero );
}
2024-09-14 06:41:52 +00:00
2025-01-03 12:09:23 +00:00
public static Vector2PropertyName Create( string name )
{
var p = new Vector2PropertyName();
p.propertyName = name;
return p;
2024-09-14 06:41:52 +00:00
}
}
}