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
- Uneven lighting is seen on the GameObjects when Sky Occlusion is enabled
- Editor freezes and a "Failed to present D3D11 swapchain" error appears when toggling loop time option and entering Play Mode
- Assets in the Project Window are incorrectly sorted when different Asset types have the same name
- [Android] The Player crashes at "isInMultiWindowMode" when using lifecycle methods
- [Linux] Editor can't find Audio Spatializer when using PS5AudioSpatializer plugin
Add comment