rj-action-library/Runtime/Shading/Materials/Transfers/FloatPropertyTransfer.cs

25 lines
396 B
C#
Raw Normal View History

2025-01-03 12:09:23 +00:00
using Godot;
using System.Reflection;
using System.Collections.Generic;
namespace Rokojori
{
[Tool]
[GlobalClass]
public partial class FloatPropertyTransfer:Resource
{
[Export]
public FloatPropertyName from;
[Export]
public FloatPropertyName to;
public void Transfer( Material a, Material b )
{
var v = from.Get( a );
to.Set( b, v );
}
}
}