docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method IsShaderVariantValid

    IsShaderVariantValid(ShaderKeywordSet, bool)

    Returns true if the given set of keywords is valid for HDR output.

    Declaration
    public static bool IsShaderVariantValid(ShaderKeywordSet shaderKeywordSet, bool isHDREnabled)
    Parameters
    Type Name Description
    ShaderKeywordSet shaderKeywordSet

    Shader keywords combination that represents a shader variant.

    bool isHDREnabled

    Whether HDR output shader variants are required.

    Returns
    Type Description
    bool

    True if the shader variant is valid and should not be stripped.

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)