Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Self Shadow Not Working After Disabling-> Re-enabling

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

  1. Ratt

    Ratt

    Joined:
    Jul 21, 2014
    Posts:
    7
    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: