docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Enum DecodeSettings

    Decode setting.

    Namespace: Draco
    Assembly: Draco.dll
    Syntax
    [Flags]
    public enum DecodeSettings

    Fields

    Name Description
    ConvertSpace

    If true, coordinate space is converted from right-hand (like in glTF) to left-hand (Unity) by inverting the x-axis.

    Default

    Default decode flags. Only space conversion is enabled.

    DontCalculateBounds

    Do not calculate an axis aligned bounding box, depicting the positional minimum and maximum extents of the mesh.

    ForceUnityVertexLayout

    Enforces vertex buffer layout with the highest compatibility. Enable this if you want to use blend shapes on the resulting mesh.

    None

    No setting active.

    RequireNormals

    If this is set to true (or RequireTangents is true), a normals vertex attribute is added regardless whether the Draco data contains actual normals. If they are missing, normals get calculated whenever a Mesh is returned. When Mesh is used, normals have to be calculated manually afterward.

    RequireNormalsAndTangents

    Require both tangents and normals. Useful since tangents imply requirement for normals.

    RequireTangents

    If this is set to true, normals and tangents vertex attributes are added regardless whether the Draco data contains actual normals. If they are missing, normals and tangents get calculated whenever a Mesh is returned. When Mesh is used, normals and tangents have to be calculated manually afterward.

    In This Article
    Back to top
    Copyright © 2025 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)