Search Issue Tracker
Fixed in 5.1.0
Votes
0
Found in
5.0.0p3
Issue ID
684880
Regression
No
WebGL throws an exception on GameObject.CreatePrimitive(PrimitiveType.Cube)
Reproduction steps:
1. Open the attached project "WebGLCrPr"
2. Build the scene "bug" for WebGL
3. Run the game, wait for 2 seconds after the game is loaded
4. A cube should be created via GameObject.CreatePrimitive(PrimitiveType.Cube), but we get an exception
Notes:
1. I've also tried creating PrimitiveType.Cylinder and PrimitiveType.Sphere, non of these throw an exception,
but the primitives aren't created.
2. Tested with both Firefox and Chrome
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
- Crash on ShaderLab::ShaderState::ApplyShaderState when entering Play Mode and calling ShaderWarmup.WarmupShaderFromCollection with a shader that has dynamic_branch
- Crash on operator delete[] when a serializable structure in the System namespace is serialized by a MonoBehaviour
- [macOS] forward and backward mouse buttons are recognized as middle mouse button
- NavMeshModifier.OnEnable/OnDisable gets progressively slower when called repeatedly
- "System.Net.CookieContainer" throws an "ArgumentException" error when using a non-UTF-8 machine locale and hostname
JoeStrout
Jul 02, 2016 13:56
The bug still occurs in 5.3.4 (assuming this is the same as https://issuetracker.unity3d.com/issues/webgl-createprimitive-fails-to-create-required-components).