We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

U3D combine with aspose.dll

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)

@leequanhu

Thank you for contacting support.

Would you please elaborate the problem a little more. However, Aspose.3D for .NET does not support any overload of Save method that can accept only one argument so please execute the commented line which has two arguments and then the code works fine in .NET Standard environment as well.

    public void Save(Stream stream, FileFormat format, CancellationToken cancellationToken = null);
    public void Save(Stream stream, SaveOptions options, CancellationToken cancellationToken = null);
    public void Save(string fileName, FileFormat format, CancellationToken cancellationToken = null);
    public void Save(string fileName, SaveOptions options, CancellationToken cancellationToken = null);

is there any one argument save function available?

@leequanhu

We are afraid that no overload of Save method is available that takes one argument. Available methods can be found in API references as you have also mentioned.