Search Issue Tracker
By Design
Votes
0
Found in
2017.4.5f1
2017.4.20f2
2018.3.0a1
2019.2.0a1
Issue ID
1127095
Regression
Yes
UnityWebRequestTexture fails when texture name contains "+" symbol
How to reproduce:
1. Open attached project "case_1127095-LoadTextureIssue" and scene "Test"
2. Enter Play Mode
3. Observe Console Window
Expected result: no errors in Console Window. Debug output shows that two images downloaded correctly
Actual result: Error in Console Window. Image with "+" in name fails to load
Reproducible with: 2017.4.5f1, 2017.22f1, 2019.1.0b5, 2019.2.0a7
Not reproducible with: 2017.4.4f1 and older
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
- Motion vectors are displayed when Phong Tessellation is used on the material and Skinned Motion Vectors are enabled on the GameObject's Skinned Mesh Renderer component
- Shader Graph Enum Keywords always select last element in Entries when Stages is set to Fragment and Recursive Rendering is enabled in the Scene
- [Mac] Glitchy visual artifacts appear when moving around a scene with Sphere Handles
- Crash on memcpy_repmovs when selecting NavMesh Agent objects while in Play Mode in a specific scene
- Console shows Exception: {"error":"not found","detail":["not found"]} after opening Build History window
Resolution Note:
'+' is a special character in URIs that denotes space. If you actually need '+' character, you have to escape it with %2b.
Note, that System.Uri class escapes passed string, so don't pass %2b to it, since then it will escape the '%' character.
Here's working modification of the code:
var uri = new Uri(Path.GetFullPath("my folder"));
var url = uri.ToString();
url += "/" + UnityWebRequest.EscapeURL("my+file.png");