docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetSurfaceShaderPrim

    GetSurfaceShaderPrim(Scene, string)

    Reads and returns the UsdPreviewSurface data for the prim at the given path, if present.

    Declaration
    public static UnityPreviewSurfaceSample GetSurfaceShaderPrim(Scene scene, string primPath)
    Parameters
    Type Name Description
    Scene scene

    The USD scene object.

    string primPath

    The path to the object in the USD scene.

    Returns
    Type Description
    UnityPreviewSurfaceSample

    A PreviewSurfaceSample if found, otherwise null.

    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)