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
Comments (1)
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 can't set a background image to a sprite from a multi-sprite spritesheet in the Resources folder
- Light2D freeform does not render the internal part when rendered in certain shapes
- Using AddCopyPass causes an incorrect merging of passes.
- Negative Enum value is not pasted correctly when copying from another array
- Silent Crash when generating Lightmap UVs for a model with a large object scale
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).