docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method ExportObjects

    ExportObjects(string, Object[], ExportModelOptions)

    Exports an array of Unity GameObjects to an FBX file, with the specified export settings.

    Declaration
    public static string ExportObjects(string filePath, Object[] objects = null, ExportModelOptions exportOptions = null)
    Parameters
    Type Name Description
    string filePath

    Absolute file path to use for the FBX file.

    Object[] objects

    Array of Unity GameObjects to export.

    ExportModelOptions exportOptions

    The export options to use.

    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
    public static string ExportObjects(string filePath, Object[] objects = null)
    Parameters
    Type Name Description
    string filePath

    Absolute file path to use for the FBX file.

    Object[] objects

    Array of Unity GameObjects to export.

    Returns
    Type Description
    string

    The FBX file path if successful; otherwise returns null.

    In This Article
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, October 4, 2023