rj-action-library/Runtime/Rendering/TextureAttributes/AssignTextureAttributesText...

27 lines
479 B
C#

using Godot;
using Rokojori;
using System.Collections.Generic;
namespace Rokojori
{
[Tool]
[GlobalClass]
public partial class AssignTextureAttributesTexture:Action
{
[Export]
public TextureAttributes textureAttributes;
[Export]
public Material material;
[Export]
public Sampler2DPropertyName texturePropertyName;
protected override void _OnTrigger()
{
texturePropertyName.Set( material, textureAttributes.texture );
}
}
}