docs.unity.cn
    Show / Hide Table of Contents

    Class PrimvarReaderImportSample<T>

    Inheritance
    Object
    SampleBase
    ShaderSample
    PrimvarReaderSample<T>
    PrimvarReaderImportSample<T>
    Inherited Members
    PrimvarReaderSample<T>.fallback
    PrimvarReaderSample<T>.outputs
    ShaderSample.id
    ShaderSample.GetInputParameters()
    ShaderSample.GetInputTextures()
    SampleBase.Free()
    Namespace: USD.NET.Unity
    Syntax
    [Serializable]
    [UsdSchema("Shader")]
    public class PrimvarReaderImportSample<T> : PrimvarReaderSample<T> where T : struct
    Type Parameters
    Name Description
    T

    Fields

    varname

    Name of the primvar to be read from the primitive as a string.

    Declaration
    [InputParameter("_Varname")]
    public Connectable<string> varname
    Field Value
    Type Description
    Connectable<String>
    Remarks

    In USD 21.11 the varname was switched from a TfToken to a string. However, as a TfToken can be implicitly converted to a string, making this a string type works for both during import.

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Friday, June 23, 2023