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

25 lines
393 B
C#

using Godot;
using System.Reflection;
using System.Collections.Generic;
namespace Rokojori
{
[Tool]
[GlobalClass]
public partial class BoolPropertyTransfer:Resource
{
[Export]
public BoolPropertyName from;
[Export]
public BoolPropertyName to;
public void Transfer( Material a, Material b )
{
var v = from.Get( a );
to.Set( b, v );
}
}
}