docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Render Type node

    Note

    Use this node only in shaders with Material set to UI for UI Toolkit. Using it elsewhere can lead to unexpected behavior or errors. For information on how to create shaders for UI Toolkit, refer to UI Shader Graph.

    The Render Type node outputs the current render type the shader is processing. You can use this node to create custom logic based on the render type. For example, you can use the output of the Render Type node to control logic that changes behavior depending on the render type.

    Ports

    Name Direction Type Description
    Solid Output Boolean True when the shader is processing the Solid render type.
    Texture Output Boolean True when the shader is processing the Texture render type.
    SDF Text Output Boolean True when the shader is processing the SDF Text render type.
    Bitmap Text Output Boolean True when the shader is processing the Bitmap Text render type.
    Gradient Output Boolean True when the shader is processing the Gradient render type.

    Additional resources

    • Render Type Branch node
    In This Article
    Back to top
    Copyright © 2025 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)