docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class MeshSampleBase

    Inheritance
    object
    ImageableSample
    XformableSample
    BoundableSample
    GprimSample
    PointBasedSample
    MeshSampleBase
    MeshSample
    Implements
    IArbitraryPrimvars
    Inherited Members
    GprimSample.colors
    BoundableSample.extent
    XformableSample.FromTransform(Transform)
    XformableSample.transform
    XformableSample.xformOpOrder
    XformableSample.ConvertTransform()
    Namespace: USD.NET.Unity
    Assembly: solution.dll
    Syntax
    [Serializable]
    public class MeshSampleBase : PointBasedSample, IArbitraryPrimvars

    Constructors

    Name Description
    MeshSampleBase()

    Fields

    Name Description
    ArbitraryPrimvars

    Container to hold extra primvars properties This is typically used to only deserialize the specific uv properties used by a mesh material and can only be discovered when materials have been processed. This could be extended to contains user defined primvars. Note the ForceNoNamespace attribute that instruct the deserialization code to keep the attributes in the "primvars" namespace. In unity mesh attributes are the same size as the vertex array so let's set the default interpolation to varying. When reading from USD the actual interpolation mode will be set.

    faceVertexIndices
    normals
    points
    tangents

    Methods

    Name Description
    AddPrimvars(List<string>)
    GetArbitraryPrimvars()
    In This Article
    Back to top
    Copyright © 2023 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)