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
- Lights with Cookies generate Cookie Atlas and increase Memory usage every time when Play mode is entered
- Crash on mono_traverse_object_internal when exiting Play mode on a specific project
- Camera prefab shows up in overrides after upgrade when game view is changed to Simulator
- Prefab Override context menu does not appear when changing attributes on a Terrain Component
- Particles are visible through Mesh when Sprite-Lit-Default Material is used
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).