Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Bug Shader error in 'Universal Render Pipeline/Unlit': The DOTS_INSTANCING_ON

Discussion in 'Editor & General Support' started by Taigama, Sep 26, 2023.

  1. Taigama

    Taigama

    Joined:
    Oct 17, 2015
    Posts:
    22
    Hello.

    Shader error in 'Universal Render Pipeline/Unlit': The DOTS_INSTANCING_ON keyword requires shader model 4.5 or greater ("#pragma target 4.5" or greater).
    at /Work/UnityProj/IdleBuildementMono/Library/PackageCache/com.unity.render-pipelines.core@12.1.8/ShaderLibrary/UnityInstancing.hlsl(50)

    upload_2023-9-26_18-37-58.png
    (Screenshot the file Universal Render Pipeline/Unlit.Shader)

    I understand what the bug is. But the bug come from Unlit.Shader of package Universal Render Pipeline.
    Now I am not able to build the project because of this.

    Context detail:
    - Unity version: 2021.3.14f1
    - Package: Universal RP 12.1.8

    Computer specs (if needed)
    - Mobo: Gigabyte B660M
    - CPU: Intel Core i5 13400F
    - RAM: 64GB
    - SSD: 1TB
    - Wifi: Intel AX210

    How to surpass this bug?

    Thank you very much!
     
  2. Taigama

    Taigama

    Joined:
    Oct 17, 2015
    Posts:
    22
    Yesterday I was not able to build the project. I'd even closed then reopened the Unity; then I turned off the computer. Today I started again but it built successfully. I haven't change anything. Don't know why, but it worked anyway...