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.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Question How to properly use GPU Instance in URP2D's Sprite-Lit-Default

Discussion in '2D' started by ARintaro, Apr 10, 2022.

  1. ARintaro

    ARintaro

    Joined:
    Oct 25, 2021
    Posts:
    8
    Hello everyone
    I'm developing a 2D game with multiple layers of parallax, like Tails of Iron How.
    We need the tool mentioned in this video (
    ) to change the color of the distant sprites to simulate depth of field.
    I know there is a function on Sprite Renderer to change the color, but this color will be multiplied with the color of the texture and the art wants the effect of OneMinusSrcAlpha.
    So I changed the Sprite-Lite-Default in the URP and enabled GPU Instancel to reduce Drawcall, but Frame Debugger tells me that the property that does not support instancing was changed.
     

    Attached Files:

  2. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    10,620
  3. ARintaro

    ARintaro

    Joined:
    Oct 25, 2021
    Posts:
    8