docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct MeshResult

    This struct holds the result of a glTF to Unity mesh conversion. During an import, glTF meshes (composed of primitives) will be converted to Unity Meshes (with sub-meshes). glTF meshes and Unity Meshes do not necessarily relate one-to-one. One glTF mesh (with multiple primitives) might be converted to multiple Unity Meshes (e.g. because of incompatible vertex buffer structure).

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: GLTFast
    Assembly: glTFast.dll
    Syntax
    public readonly struct MeshResult

    Constructors

    MeshResult(int, int[], int[], Mesh)

    MeshResult Constructor

    Declaration
    public MeshResult(int meshIndex, int[] primitiveIndices, int[] materialIndices, Mesh mesh)
    Parameters
    Type Name Description
    int meshIndex

    Original glTF mesh index

    int[] primitiveIndices

    Original glTF mesh primitive index per sub-mesh

    int[] materialIndices

    glTF material index per sub-mesh

    Mesh mesh

    Converted Unity Mesh

    Fields

    materialIndices

    glTF material index per sub-mesh

    Declaration
    public readonly int[] materialIndices
    Field Value
    Type Description
    int[]

    mesh

    Converted Unity Mesh

    Declaration
    public readonly Mesh mesh
    Field Value
    Type Description
    Mesh

    meshIndex

    Original glTF mesh index

    Declaration
    public readonly int meshIndex
    Field Value
    Type Description
    int

    primitiveIndices

    Original glTF mesh primitive index per sub-mesh

    Declaration
    public readonly int[] primitiveIndices
    Field Value
    Type Description
    int[]
    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)