docs.unity3d.com
    Show / Hide Table of Contents

    Class Primvar<T>

    Represents a PrimVar in USD. Since primvars have associated metadata which is often required for I/O, this class enables reading that data in a consistent way. It is implicit that any Primvar object will be in the namespace "primvars".

    Inheritance
    Object
    PrimvarBase
    Primvar<T>
    Inherited Members
    PrimvarBase.interpolation
    PrimvarBase.elementSize
    PrimvarBase.indices
    PrimvarBase.GetInterpolationToken()
    PrimvarBase.SetInterpolationToken(TfToken)
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: USD.NET
    Syntax
    public class Primvar<T> : PrimvarBase, ValueAccessor
    Type Parameters
    Name Description
    T

    Constructors

    Primvar()

    Declaration
    public Primvar()

    Fields

    value

    Declaration
    public T value
    Field Value
    Type Description
    T

    Properties

    IsArray

    Declaration
    public bool IsArray { get; }
    Property Value
    Type Description
    Boolean

    Length

    Declaration
    public int Length { get; }
    Property Value
    Type Description
    Int32

    Methods

    GetValue()

    Declaration
    public object GetValue()
    Returns
    Type Description
    Object
    Implements
    ValueAccessor.GetValue()

    GetValueType()

    Declaration
    public Type GetValueType()
    Returns
    Type Description
    Type
    Implements
    ValueAccessor.GetValueType()

    SetValue(Object)

    Declaration
    public void SetValue(object o)
    Parameters
    Type Name Description
    Object o
    Implements
    ValueAccessor.SetValue(Object)
    Back to top
    Copyright © 2023 Unity Technologies
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on Thursday, October 19, 2023