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
- The Scene View becomes gray and "NullReferenceException" errors are thrown when attaching the Unity Editor process to RenderDoc
- Memory usage rapidly rises when changing colors in the color wheel
- Physically Based Sky's Horizon and Zenith Tint Color Selection Bars don't have immediate access to color pickers
- EmptyAdditionalLightShadowmapTexture leaks from memory when URP quality level is changed using QualitySettings.SetQualityLevel
- Referenced ScriptableObject field does not get updated and cannot be set to "None" when there are no Objects of that type
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.