using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Reflection;
using Aspose;
using Aspose.ThreeD;
using Aspose.ThreeD.Animation;
using Aspose.ThreeD.Deformers;
using Aspose.ThreeD.Entities;
using Aspose.ThreeD.Formats;
using Aspose.ThreeD.Utilities;
using UnityEngine;
public class Gen_Cube : MonoBehaviour {
// Use this for initialization
void Start () {
// ExStart:CreateEmpty3DDocument
// The path to the documents directory.
string output = @"F:\Unity\Unity Project\Learn\Book_Class\Azure_Weather\Assets\Azure[Sky] Dynamic Skybox\FBX\"+ "cube.fbx";
// Create an object of the Scene class
Aspose.ThreeD.Scene scene = new Aspose.ThreeD.Scene();
// Save 3D scene document
scene.Save(output);
//scene.Save(output, FileFormat.FBX7500ASCII);
// ExEnd:CreateEmpty3DDocument
Debug.Log("\nAn empty 3D document created successfully.\nFile saved at " + output);
}
// Update is called once per frame
void Update () {
}
}
above are the codes
image.png (5.3 KB)