docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct MeshDescription

    Data describing a mesh in Unity.

    Implements
    IDisposable
    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Unity.Importer.USD
    Assembly: Unity.Importer.USD.dll
    Syntax
    public struct MeshDescription : IDisposable

    Fields

    BlendShapeDescriptions

    Blend shape data for this mesh.

    Declaration
    [NativeDisableContainerSafetyRestriction]
    public NativeArray<BlendShapeDescription> BlendShapeDescriptions
    Field Value
    Type Description
    NativeArray<BlendShapeDescription>

    BoneInfluenceCount

    Amount of bone influencing a vertex for a skinned mesh.

    Declaration
    public int BoneInfluenceCount
    Field Value
    Type Description
    int

    Bounds

    Bounds of the mesh.

    Declaration
    public Bounds Bounds
    Field Value
    Type Description
    Bounds

    Indices

    Mesh indices buffer.

    Declaration
    [NativeDisableContainerSafetyRestriction]
    public NativeArray<int> Indices
    Field Value
    Type Description
    NativeArray<int>

    JointsBindingMatrices

    Joint binding matrix for skinned mesh.

    Declaration
    [NativeDisableParallelForRestriction]
    public NativeArray<float4x4> JointsBindingMatrices
    Field Value
    Type Description
    NativeArray<float4x4>

    SkinningData

    Skinned mesh data buffer. Used to write the skinned mesh info in a Unity mesh.

    Declaration
    [NativeDisableContainerSafetyRestriction]
    public NativeArray<byte> SkinningData
    Field Value
    Type Description
    NativeArray<byte>

    SubMeshDescriptors

    SubMeshDescriptor for this mesh.

    Declaration
    [NativeDisableContainerSafetyRestriction]
    public NativeArray<SubMeshDescriptor> SubMeshDescriptors
    Field Value
    Type Description
    NativeArray<SubMeshDescriptor>

    VertexAttributeDescriptors

    Describe the data provided for each vertex (position, uv, skinned mesh weights, etc...).

    Declaration
    [NativeDisableContainerSafetyRestriction]
    public NativeArray<VertexAttributeDescriptor> VertexAttributeDescriptors
    Field Value
    Type Description
    NativeArray<VertexAttributeDescriptor>

    VertexColorAndUVSize

    Memory size of one of this mesh vertex's color and texture coordinates

    Declaration
    public int VertexColorAndUVSize
    Field Value
    Type Description
    int

    VertexCount

    Mesh vertex count.

    Declaration
    public NativeArray<int> VertexCount
    Field Value
    Type Description
    NativeArray<int>
    Remarks

    Due to job limitation, this value is stored in the first entry of this NativeArray

    VertexData

    Mesh data buffer, used to write the Unity mesh.

    Declaration
    [NativeDisableContainerSafetyRestriction]
    public NativeArray<byte> VertexData
    Field Value
    Type Description
    NativeArray<byte>

    VertexPositionAndNormalSize

    Memory size of one of this mesh vertex's position and normal

    Declaration
    public int VertexPositionAndNormalSize
    Field Value
    Type Description
    int

    Properties

    VertexSize

    Memory size of one of this mesh vertex.

    Declaration
    public int VertexSize { get; }
    Property Value
    Type Description
    int

    skinningDataStream

    Stream to use for skinning data

    Declaration
    public int skinningDataStream { get; }
    Property Value
    Type Description
    int

    Methods

    Dispose()

    See documentation for <IDisposable.Dispose> for more details

    Declaration
    public void Dispose()

    Implements

    IDisposable
    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)