Search Issue Tracker
Fixed in 4.6.X
Votes
0
Found in
4.6.0b12
Issue ID
618542
Regression
Yes
RawImage texture cannot be changed after a yield statement in a couroutine
To Reproduce:
1. Open 'ReplaceImage.cs' in the attached project remove the first (WWW) line in the coroutine, change the last line to .. = tex. , change the yield statement to WaitForEndOfFrame().
2. Run, observe that the texture is not changed, editing any RawImage property in inspector updates the texture.
3. This only happens if the yield statement is called before the texture is changed and also the yield takes has to take more than a single frame. If the texture is assigned in the same frame , e.g. after 'WaiForFixedUpdate()', it's updated successfully.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Crash on RaiseException when opening a specific project
- DownloadHandlerScript.CompleteContent is called twice when building for WebGL
- Scene view has Y coordinates of the Screen Position node flipped when some of the URP features are disabled
- Volumetric fog shader variants are missing from build when "Strict Shader Variant Matching" is disabled
- Unnecessary modifications clutter the Scene when using a RectTransform driven by a LayoutGroup in a Prefab
Add comment