docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Enum DecodeSettings

    Decode setting.

    Namespace: Draco
    Assembly: solution.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.

    ForceUnityVertexLayout

    Enforces vertex buffer layout with 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 MeshData is used, normals have to be calculated manually afterwards.

    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 MeshData is used, normals and tangents have to be calculated manually afterwards.

    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)