rokojori_action_library/Runtime/Shading/Materials/Transfers/BoolPropertyTransfer.cs

26 lines
420 B
C#
Raw Normal View History

2025-01-03 12:09:23 +00:00
using Godot;
using System.Reflection;
using System.Collections.Generic;
2026-05-22 12:25:02 +00:00
using Rokojori.Extensions;
2025-01-03 12:09:23 +00:00
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 );
}
}
}