docs.unity.cn
    Show / Hide Table of Contents

    Class ShaderExporterBase

    Inheritance
    Object
    ShaderExporterBase
    HdrpShaderExporter
    StandardShaderExporter
    Namespace: Unity.Formats.USD
    Syntax
    public class ShaderExporterBase

    Methods

    SetupTexture(Scene, String, Material, PreviewSurfaceSample, Vector4, String, String, String, ShaderExporterBase.ConversionType)

    Exports the given texture to the destination texture path and wires up the preview surface.

    Declaration
    protected static string SetupTexture(Scene scene, string usdShaderPath, Material material, PreviewSurfaceSample surface, Vector4 scale, string destTexturePath, string textureName, string textureOutput, ShaderExporterBase.ConversionType conversionType = ShaderExporterBase.ConversionType.None)
    Parameters
    Type Name Description
    Scene scene
    String usdShaderPath
    Material material
    PreviewSurfaceSample surface
    Vector4 scale
    String destTexturePath
    String textureName
    String textureOutput
    ShaderExporterBase.ConversionType conversionType
    Returns
    Type Description
    String

    Returns the path to the USD texture object.

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