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.

Self Shadow Not Working After Disabling-> Re-enabling

Discussion in '2D Experimental Preview' started by Ratt, Jun 22, 2021.

  1. Ratt


    Jul 21, 2014
    As seen on the gif, after I've disabled and renabled a ShadowCaster2D, it seems the self shadow functionality no longer works, while the rest of its functionality works correctly.

    It is a bit laggy in the gif because it is actually outputing to a render texture to be used in a fog of war system.

    When first entering into a level, before any shadow casters have been disabled (I turn them off when they are far away from the player for efficiency), they are working correctly, it is only the ones that are turned off that have issues.

    I'm on Unity Version 2021.1.1f1, URP version: 11.0.0

    Attached Files: