docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ExportModelOptions

    Class specifying the settings for exporting to FBX.

    Inheritance
    object
    ExportModelOptions
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEditor.Formats.Fbx.Exporter
    Assembly: Unity.Formats.Fbx.Editor.dll
    Syntax
    [Serializable]
    public class ExportModelOptions

    Properties

    AnimateSkinnedMesh

    Option to export the animation on GameObjects that have a skinned mesh.

    Declaration
    public bool AnimateSkinnedMesh { get; set; }
    Property Value
    Type Description
    bool

    AnimationDest

    The transform to transfer the animation to. This GameObject receives the transform animation on GameObjects between Source and Destination as well as the animation on the Source itself.

    Declaration
    public Transform AnimationDest { get; set; }
    Property Value
    Type Description
    Transform

    AnimationSource

    The transform to transfer the animation from. The animation is transferred to AnimationDest.

    Declaration
    public Transform AnimationSource { get; set; }
    Property Value
    Type Description
    Transform
    Remarks

    Transform must be an ancestor of AnimationDest, and may be an ancestor of the selected GameObject.

    EmbedTextures

    Option to embed textures in the exported FBX file.

    Declaration
    public bool EmbedTextures { get; set; }
    Property Value
    Type Description
    bool
    Remarks

    To embed textures, you must set the file ExportFormat to binary.

    ExportFormat

    The export format (binary or ascii).

    Declaration
    public ExportFormat ExportFormat { get; set; }
    Property Value
    Type Description
    ExportFormat

    ExportUnrendered

    Option to export GameObjects that don't have a renderer.

    Declaration
    public bool ExportUnrendered { get; set; }
    Property Value
    Type Description
    bool

    KeepInstances

    Option to keep multiple instances of the same mesh as separate instances on export.

    Declaration
    public bool KeepInstances { get; set; }
    Property Value
    Type Description
    bool

    LODExportType

    The type of LOD to export (All, Highest or Lowest).

    Declaration
    public LODExportType LODExportType { get; set; }
    Property Value
    Type Description
    LODExportType

    ModelAnimIncludeOption

    Option to export the model only, the animation only, or both the model and the animation.

    Declaration
    public Include ModelAnimIncludeOption { get; set; }
    Property Value
    Type Description
    Include

    ObjectPosition

    The position to export the object to (Local centered, World absolute, or Reset). Use Reset for converting to a Prefab.

    Declaration
    public ObjectPosition ObjectPosition { get; set; }
    Property Value
    Type Description
    ObjectPosition

    PreserveImportSettings

    Option to preserve the previous import settings after the export when overwriting an existing FBX file.

    Declaration
    public bool PreserveImportSettings { get; set; }
    Property Value
    Type Description
    bool

    UseMayaCompatibleNames

    Option to convert the GameObject and material names to Maya compatible names.

    Declaration
    public bool UseMayaCompatibleNames { get; set; }
    Property Value
    Type Description
    bool
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)