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, ProjectSettings.GlobalizePath( path ) );
      #endif
    }
  }
}
