Search Issue Tracker
Duplicate
Votes
0
Found in
2021.2.0a19
2021.2.0b9
2022.1
Issue ID
1362325
Regression
Yes
Building to WebGL with Visual Scripting Script Graph causes errors that fail the build
How to reproduce:
1. Create a new project
2. Create Assets > Create > Visual Scripting > Script Graph and in the Inspector click Edit Graph
3. Go to File > Build Settings… and click on WebGL > Switch Platform > Build
Expected result: Build is successful
Actual result: Build was canceled and errors appear in the console
Reproducible with: 2021.2.0a19, 2021.2.0b16, 2022.0a13
Not reproducible with: 2020.3.20f1, 2021.1.24f1, 2021.2.0a17
Could not test: 2019.4.31f1 (Scripting Machine not working), 2021.2.0a18 (constantly failing to install this version and WebGL support)
Notes:
- Successfully builds to standalone Player
- No errors entering Play Mode
Errors:
Assets/Unity.VisualScripting.Generated/VisualScripting.Core/AotStubs.cs(850,64): error CS0306: The type 'ReadOnlySpan<char>' may not be used as a type argument
Or
Assets/Unity.VisualScripting.Generated/VisualScripting.Core/AotStubs.cs(842,11): error CS0234: The type or namespace name 'ReadOnlySpan<>' does not exist in the namespace 'System' (are you missing an assembly reference?)
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
- [UI Builder] Viewport's gizmos for Margin and Padding disappear when dragging to modify the value and the cursor leaves the Spacing section
- "Multiplayer Center" window does not reflect changes made in "Other Packages" section
- Crash on D3DKMTOpenResource when capturing with RenderDoc while GPU Skinning is set to GPU(Batched)
- Editing and saving Curve changes in UI Builder window throws multiple errors in the Console
- [UI Builder] Value is not selected when left clicking on Spacing/Border Widget values
This is a duplicate of issue #1343154