Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

Question Materials using custom shader appearing purple when building the game but look fine in the editor

Discussion in 'Shaders' started by unity_UIzgG39gow4QOg, Mar 3, 2024.

  1. unity_UIzgG39gow4QOg

    unity_UIzgG39gow4QOg

    Joined:
    Jul 16, 2021
    Posts:
    1
    Hey, I am currently making a game using the URP Render Pipeline in Unity version 2022.3.20f1. I recently installed a 3rd party toon shader (https://github.com/Delt06/urp-toon-shader) and everything works fine in the editor, but when I build the game all materials using the toon shader appear purple.

    When playing in the unity editor: (ignore the "New Text")


    When playing in the build version of the game:
     
  2. POOKSHANK

    POOKSHANK

    Joined:
    Feb 8, 2022
    Posts:
    382
    try adding it to always included shaders in the settings
     
  3. Invertex

    Invertex

    Joined:
    Nov 7, 2013
    Posts:
    1,558
    Also check the Console for any warnings or errors after the build finishes. Sometimes a shader can't compile for a target platform.