docs.unity.cn
    Show / Hide Table of Contents

    Class VertexDataAttribute

    Declares the attribute as vertex data which can be made available to the shader at render time and enables repteated value compression.

    Inheritance
    Object
    Attribute
    VertexDataAttribute
    Namespace: USD.NET
    Syntax
    public class VertexDataAttribute : Attribute, _Attribute
    Remarks

    This declaration is not needed for round-trip C# serialization, however it formats the USD file so that it can be rendered outside of C#.

    Constructors

    VertexDataAttribute()

    Declaration
    public VertexDataAttribute()

    VertexDataAttribute(Int32)

    Declaration
    public VertexDataAttribute(int elementSize)
    Parameters
    Type Name Description
    Int32 elementSize

    Fields

    Interpolation

    Declaration
    public static TfToken Interpolation
    Field Value
    Type Description
    TfToken

    Properties

    ElementSize

    Declaration
    public int ElementSize { get; set; }
    Property Value
    Type Description
    Int32
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Friday, June 23, 2023