docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method ExportLit

    ExportLit(Scene, string, Material, PreviewSurfaceSample, string)

    Export a HDRP Lit shader to USD.

    Declaration
    public static void ExportLit(Scene scene, string usdShaderPath, Material material, PreviewSurfaceSample surface, string destTexturePath)
    Parameters
    Type Name Description
    Scene scene

    The scene (representing a UsdStage) in which to store output PreviewSurface prims

    string usdShaderPath

    The path of the preview surface shader in the USD stage.

    Material material

    The Unity material to export.

    PreviewSurfaceSample surface

    A sample containing the output preview surface data.

    string destTexturePath

    A path indicating where created output textures are written.

    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)