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
Comments (1)
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
- [Android][BiRP] Depth processing is handled incorrectly on certain Android devices when using 2 camera's
- [APV] Cancelling Display Dialog Error is thrown after Adaptive Probe Volumes tab is open in Lighting Window
- [APV] NullReferenceException is thrown when baking Adaptive Probe Volume for a Terrain with Non-GI Contributing Tree Prototypes and multiple APV objects with different LayerMasks are present on the scene
- Hands are not recognized when using Hololens 2
- "OnTriggerExit2D" is called before "OnTriggerEnter2D" when object is destroyed immediately
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.