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
- WebGL build dependencies are not refreshed until the Editor is restarted
- “Audio Random Container” allows adding unlimited number in “Audio Clips” numeric field, causing Editor to freeze
- In Deferred rendering path, mixed lights don't render when enabling "Use Rendering Layers" in the Decal renderer feature
- [Windows] Special characters in file names are sorted to the end of the alphabet in the Project window
- Information box icons are not contained within the information box bounds in Render Pipeline Converter window
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).