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
- Fixing Message Loss in UMPE During Domain Reload
- The Editor freezes when ScheduleReadOnly of IJobParallelForTransform with dependency is used
- Text is truncated in the Inspector when the display scale is set to 150%
- CancellationTokenSource(<timeout>) has incorrect cancellation status when used in WebGL Player
- VFX property value names are cut off when properties with 'Arc' are viewed in the VFX Blackboard
Add comment