docs.unity3d.com
    目次を表示する/隠す

    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 : System.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
    public static string ExportObject(string filePath, Object singleObject)
    Parameters
    Type Name Description
    String filePath

    Absolute file path to use for the FBX file.

    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
    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.

    トップに戻る
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)