docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct BlendShapeDescription

    BlendShape data for a mesh.

    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 BlendShapeDescription : IDisposable
    Remarks

    We will write each blendshape frame consecutively in our array. considering a blendshape : frame_0 with offsets off_00, off_01, off_02 AND frame_1 with offsets off_10, off_11, off_12 the resulting offsets array will be : off_00, off_01, off_02, off_10, off_11, off_12

    Note : offsets arrays need to have a size of mesh.vertexCount.

    Constructors

    BlendShapeDescription(UsdSkelBlendShape, int)

    BlendShape data for a mesh.

    Declaration
    public BlendShapeDescription(UsdSkelBlendShape blendShapeIn, int vertexCount)
    Parameters
    Type Name Description
    UsdSkelBlendShape blendShapeIn

    The <pxr.UsdSkelBlendShape> used to initialize this description.

    int vertexCount

    The vertex count of the linked mesh

    Fields

    DeltaNormals

    Normal offsets for each vertex.

    Declaration
    public NativeArray<float3> DeltaNormals
    Field Value
    Type Description
    NativeArray<float3>

    DeltaVertices

    Position offsets for each vertex.

    Declaration
    public NativeArray<float3> DeltaVertices
    Field Value
    Type Description
    NativeArray<float3>

    FrameCount

    Number of frames in this blend shape.

    Declaration
    public int FrameCount
    Field Value
    Type Description
    int

    Name

    Name of the blend shape.

    Declaration
    public NativeArray<char> Name
    Field Value
    Type Description
    NativeArray<char>

    Weights

    Weight of each frame of the blend shape.

    Declaration
    public NativeArray<float> Weights
    Field Value
    Type Description
    NativeArray<float>

    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)