27 lines
479 B
C#
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 );
|
|
}
|
|
|
|
}
|
|
} |