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. The 2022.2 beta is now available for testing. To find out what's new, have a look at our 2022.2 feature highlights.
    Dismiss Notice
Dismiss Notice
Submit bug reports tagged with #Beta2022Win_Unity when you encounter unknown issues while testing the 2022.2 betas for a chance to win a year of Unity Pro. For more information, have a look at our Beta Sweepstakes Announcement.

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:

unityunity