Search Issue Tracker
Fixed in 2022.1.X
Fixed in 2020.3.X, 2021.2.X
Votes
2
Found in
2020.1.0a19
2020.3
2020.3.11f1
2021.1
2021.2
2022.1
Issue ID
1341180
Regression
Yes
TextAsset.bytes includes UTF-8 header when loading a file from AssetBundle
How to reproduce:
1. Open the attached '1341180.zip' project
2. Open the SampleScene
3. Enter the Play mode
4. Press the 'Load' button
5. Observe the Console
Expected result: 'textAsset.bytes.Length 4' gets printed in the Console
Actual result: 'textAsset.bytes.Length 7' gets printed in the Console
Reproducible with: 2020.1.0a19, 2020.1.17f1, 2020.3.14f1, 2021.1.14f1, 2021.2.0b3, 2022.1.0a1
Not reproducible with: 2018.4.36f1, 2019.4.29f1, 2020.1.0a18
Note:
- AssetBundles can be rebuilt via Assets > Build AssetBundles
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
- “[Worker0] Could not generate preview image“ error when opening macOS native plugin in the Inspector with Architecture to build for set to ARM 64-bit
- [iOS] Application.absoluteURL is empty on Awake/Start when opening via deep link with Splash Screen disabled
- Crash on MemoryManager::Deallocate when rapidly calling Addressables.LoadAssetAsync
- Crash on physx::shdfnd::atomicIncrement when adjusting values on a character controller component after entering Play mode in Prefab edit mode
- [Rendering Debugger] [NewInputSystem] Debug Overlays in Play mode throws InvalidOperationException when using New Input System
Resolution Note (fix version 2022.1):
Fixed in: 2022.1.0a16
Resolution Note (fix version 2021.2):
Fixed in: 2021.2.8f1
Resolution Note (fix version 2020.3):
Fixed in: 2020.3.26f1