docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method SetupTexture

    SetupTexture(Scene, string, Material, PreviewSurfaceSample, Vector4, string, string, string, 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 = 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.

    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)