docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct DecodeResult

    Holds the result of the Draco decoding process.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    Namespace: Draco
    Assembly: solution.dll
    Syntax
    public readonly struct DecodeResult

    Constructors

    DecodeResult(bool, Bounds, bool, BoneWeightData)

    Declaration
    public DecodeResult(bool success, Bounds bounds, bool calculateNormals, BoneWeightData boneWeightData)
    Parameters
    Type Name Description
    bool success
    Bounds bounds
    bool calculateNormals
    BoneWeightData boneWeightData

    Fields

    boneWeightData

    If the Draco file contained bone indices and bone weights, this property is used to carry them over (since MeshData currently provides no way to apply those values)

    Declaration
    public readonly BoneWeightData boneWeightData
    Field Value
    Type Description
    BoneWeightData

    bounds

    Axis aligned bounding box of the mesh/point cloud.

    Declaration
    public readonly Bounds bounds
    Field Value
    Type Description
    Bounds

    calculateNormals

    True, if the normals were marked required, but not present in Draco mesh. They have to get calculated.

    Declaration
    public readonly bool calculateNormals
    Field Value
    Type Description
    bool

    success

    True if the decoding was successful

    Declaration
    public readonly bool success
    Field 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)