rj-action-library/Tools/gltf-export/ExportGLTF.cs

30 lines
423 B
C#
Raw Normal View History

2025-07-14 10:35:37 +00:00
using System.Collections;
using System.Collections.Generic;
using Godot;
using System;
using System.Threading.Tasks;
namespace Rokojori.Tools
{
[Tool]
[GlobalClass]
public partial class ExportGLTF:Action
{
[Export]
public Node3D root;
[Export]
public string path;
protected override void _OnTrigger()
{
#if TOOLS
GLTFExport.Save( root, path );
#endif
}
}
}