This commit is contained in:
左右看
2023-06-28 00:35:46 +08:00
parent cb5bab5ce9
commit 0d848e4d07
524 changed files with 78452 additions and 12 deletions
@@ -0,0 +1,17 @@
using System.IO;
using UnityEngine;
namespace UnityGLTF.Examples
{
public class GLTFExporterTest : MonoBehaviour
{
// Use this for initialization
void Awake()
{
var exporter = new GLTFSceneExporter(new[] {transform}, new ExportOptions());
var appPath = Application.dataPath;
var wwwPath = appPath.Substring(0, appPath.LastIndexOf("Assets")) + "www";
exporter.SaveGLTFandBin(Path.Combine(wwwPath, "TestScene"), "TestScene");
}
}
}