Search Issue Tracker
Fix In Review for 14.x.x
Votes
1
Found in [Package]
12.1.3
Issue ID
1396422
Regression
No
[2D][URP] Sprite Light 2D visuals don't update when Sprite texture is modified in transparent areas.
[2D][URP] Sprite Light 2D visuals don't update when Sprite texture is modified in transparent areas.
Repro steps:
- Open the PNG files for either of the sprites that are referenced by the 2 sprite lights in the scene.
- Edit them in an image-editing tool (Photoshop) by adding new pixels in transparent areas outside the white triangle.
- Save and return to Unity.
- Observe that the light visuals have not changed.
Note:
- Removing and re-adding the sprite references works as expected.
- Modifying pixels that are already visible (inside the white triangle) works as expected.
Expected result: Sprite light updates its texture when its referenced sprite is edited
Actual result: Sprite light does not update its texture when its referenced sprite is edited until it is re-added
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Search field in UI Builder's Library has no character limit
- Changing the value in UI Builder by dragging increases it by a few thousand points when reaching the borders of the screen
- ARM64 architecture DLL incorrectly copied instead of x64 when building for Windows x64
- Crash on TypeTreeIterator::GetNode when opening a specific folder
- Crash on WriteSerializedAssetsV2 when (re)entering the Play Mode in a specific project when IEnumerator Start() is used
dogboydog
Apr 01, 2022 01:40
I think this is similar or the same to an issue I'm having. If you assign a sprite to a Sprite Light 2D and change the sprite (even doubling or halving it in size), for me in Unity 2021.2.15f1, the light does not change size at all, unless you select another sprite as the cookie ("sprite" field on the light) and then set it back to the original image. Then the size changes. This makes iterating on the lights very tedious.