rokojori_action_library/Runtime/Rendering/TextureAttributes/AssignTextureAttributesText...

28 lines
506 B
C#
Raw Normal View History

2025-10-24 11:38:51 +00:00
using Godot;
using Rokojori;
using System.Collections.Generic;
2026-05-22 12:25:02 +00:00
using Rokojori.Extensions;
2025-10-24 11:38:51 +00:00
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 );
}
}
}