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

30 lines
423 B
C#

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
}
}
}