Class ModelExporter | FBX Exporter | 2.0.3-preview.3
docs.unity3d.com
    Show / Hide Table of Contents

    Class ModelExporter

    Use the ModelExporter class to export Unity GameObjects to an FBX file.

    Use the ExportObject and ExportObjects methods. The default export options are used when exporting the objects to the FBX file.

    For information on using the ModelExporter class, see the Developer's Guide.

    Inheritance
    Object
    ModelExporter
    Namespace: UnityEditor.Formats.Fbx.Exporter
    Syntax
    public sealed class ModelExporter : IDisposable

    Methods

    Dispose()

    Cleans up this class on garbage collection

    Declaration
    public void Dispose()

    ExportObject(String, Object)

    Exports a single Unity GameObject to an FBX file.

    Declaration
    [SecurityPermission(SecurityAction.LinkDemand)]
    public static string ExportObject(string filePath, Object singleObject)
    Parameters
    Type Name Description
    String filePath

    Absolute file path to use for the FBX file.

    UnityEngine.Object singleObject

    The Unity GameObject to export.

    Returns
    Type Description
    String

    The FBX file path if successful; otherwise null.

    ExportObjects(String, Object[])

    Exports an array of Unity GameObjects to an FBX file.

    Declaration
    [SecurityPermission(SecurityAction.LinkDemand)]
    public static string ExportObjects(string filePath, Object[] objects = null)
    Parameters
    Type Name Description
    String filePath

    Absolute file path to use for the FBX file.

    UnityEngine.Object[] objects

    Array of Unity GameObjects to export.

    Returns
    Type Description
    String

    The FBX file path if successful; otherwise returns null.

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023