Search Issue Tracker
Duplicate
Votes
2
Found in
5.4.0a2
Issue ID
747286
Regression
No
[WebGL] CreatePrimitive fails to create required components
1. What happened
- Created a scene with a an object and a script that calls GameObject.CreatePrimitive(PrimitiveType.Cube)
- Built for WebGL
- Ran webgl build which failed to create the cube
2. How we can reproduce it using the example you attached
- Build and Run for WebGL
- Notice no cube on screen
open browser console you'll see:
Can't add component because class 'MeshFilter' doesn't exist!
Can't add component because class 'BoxCollider' doesn't exist!
Can't add component because class 'MeshRenderer' doesn't exist!
if you then, disable "Strip Engine Code", and rebuild. it will work fine.
Comments (7)
-
tarekgedawy
Jan 08, 2023 00:01
alfaris.company/2018/11/transfer-riyadh.html شركة نقل عفش بالرياض
alfaris.company/2018/11/transfer-riyadh-to-jordan.html شركة شحن من السعودية للاردن
alfaris.company/2020/08/dammam-to-jordan.html شركة نقل عفش من الدمام الى الاردن
alfaris.company/2018/12/Moving-furniture-Riyadh-to-Jordan.html شركة شحن عفش من الرياض الى الاردن
alfaris.company/2020/09/Shipping-from-Dammam-to-Emirates.html شركة نقل عفش من الرياض الى الامارات
alfaris.company/2020/08/best-shipping-company-from-Dammam-to-Turkey.html شركة شحن من الدمام الى تركيا
alfaris.company/2020/08/best-shipping-company-from-Dammam-to-Lebanon.html شركة شحن من الدمام الى لبنان
alfaris.company/2020/08/best-shipping-company-from-Dammam-to-Morocco.html شركة شحن من الدمام الى المغرب
alfaris.company/2020/08/Shipping-from-Dammam-to-Kuwait.html شركة نقل عفش من الدمام الى الكويت
alfaris.company/2020/08/Shipping-from-Dammam-to-Bahrain.html شركة نقل عفش من الدمام الى البحرين
alfaris.company/2020/08/Shipping-from-Dammam-to-Oman.html شركة نقل عفش من الدمام الى سلطنة عمان
alfaris.company/2020/08/Shipping-from-Dammam-to-Qatar.html شركة نقل عفش من الدمام الى قطر
alfaris.company/2020/08/Shipping-from-Dammam-to-Iraq.html شركة نقل عفش من الدمام الى العراق
alfaris.company/2019/12/transport-from-jeddah-to-jordan.html نقل عفش من جدة للاردن
alfaris.company/2014/06/Customs-exemption-for-Jordanian-expatriates.html الاعفاء الجمركى للمغتربين الاردنيين -
tarekgedawy
Jan 07, 2023 23:46
alshimaa.com/2019/12/Shipping-from-Saudi-Arabia-to-Egypt.html
alshimaa.com/2019/12/Shipping-from-Riyadh-to-Egypt.html
-
tarekgedawy
Jan 07, 2023 23:36
bareeq-clean.com
alsaad-mover.com
alsaif-ksa.com
corner-ksa.com
shipping-sa.com
alfaris.company
alssareh.com
alrahwan.com
alshimaa.com
al-kauther.com
natiga-thanwya.com
el-zahrani.blogspot.com
number1-ksa.blogspot.com
natigaa-thanwya.blogspot.com
24alan.blogspot.com
engineering-ac.com -
riqmariz
May 14, 2019 19:06
That helped me, thanks.
-
ensomniac
Feb 01, 2017 00:11
This is also evident in 5.5.0f3 - super frustrating
-
JoeStrout
Jul 02, 2016 13:55
It also occurs in 5.3.4. And Unity, if you're going to tell us this is a duplicate, it should would be great if you would include a link to the bug it's a duplicate of!
Note to others who trip over this bug: another work-around is to just add private MeshCollider, MeshFilter, and MeshRenderer properties anywhere in your code. It will then work even with Strip Engine Code checked.
-
kd7uiy
Jan 15, 2016 14:55
Note that this issue also occurs in 5.3.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
- Decals are not projected when "Rendering Layers" are set to 24th Layer or above in Decal Projector
- Cancellation button is not centered and has no padding on the right side in the Background Tasks Window
- UI overlaps in the Project Browser window when resized vertically
- UI Elements overlap in the Search window when Search window is docked and resized horizontally
- ProBuilder Tool item appears twice in the overlay when editing in Vertex/Edge/Face context
This is a duplicate of issue #731151