docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class MaterialSample

    Inheritance
    object
    MaterialSample
    Namespace: USD.NET.Unity
    Assembly: solution.dll
    Syntax
    [Serializable]
    public class MaterialSample : SampleBase

    Constructors

    Name Description
    MaterialSample()
    MaterialSample(string)
    MaterialSample(string, string)

    Fields

    Name Description
    displacement
    requiredKeywords
    surface

    Methods

    Name Description
    Bind(Scene, string, string)

    Binds the prim to the given material. https://graphics.pixar.com/usd/docs/api/class_usd_shade_material.html#a116ed8259600f7a48f3792364252a4e1

    ReadMaterial(Scene, string, MaterialSample, out string)

    Reads the material associated with the geometry at the target path. If a valid material is bound, the "surface" shader is inspected, if valid, the shader ID is queried and returned via the shaderId output parameter. Returns true when shaderId is set.

    Unbind(Scene, string)

    Unbinds the prim from all materials. https://graphics.pixar.com/usd/docs/api/class_usd_shade_material.html#a6fc9d56d2e2e826aa3d96711c7b0e605

    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)