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

25 lines
402 B
C#

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