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
- Error "ArgumentException: Trying to use an invalid resource" when creating custom post-processing effect in URP
- [DX12] GameObjects using CommandBuffer DrawProcedural and DispatchCompute calls have color flicker when changing color and moving mouse cursor
- The Player becomes unresponsive after resolution switch in Exclusive Fullscreen mode when using DX12 Graphics API
- (Apple Silicon) Floating point inconsistencies between mono and il2cpp
- Crash on GeneratePropertyDiffInternal when using NodeCanvas nodes
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.