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. |