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
- Long Prefab save times when using Unity 2022.2 and higher
- Console displays error "UnityException: Creating asset at path Assets/Scenes/ .scenetemplate failed." during scene template saving
- "Development Build" watermark is shown in non-development UWP release builds
- Console errors appear when the Inspector is set to Debug and a GameObject is selected
- A script public variable value is not used when set in the Inspector window
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.