docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Enum EncodeOptions

    Optional flags that alter how a mesh is encoded.

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

    Fields

    Name Description
    None

    Default behavior. Vertex attributes are encoded with the dimension of the source mesh.

    PadSkinAttributesToFour

    Encodes bone weights (BlendWeight) and bone indices (BlendIndices) with four components, padding missing components with zeros. Required for glTF, where JOINTS_0 and WEIGHTS_0 must be VEC4.

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