[LayaAirIDE 2.0]laya.CylinderMesh is not a constructor

Uncaught TypeError: Laya.CylinderMesh is not a constructor。
 
创建圆柱体失败,按官网例子来的。
 
项目是直接使用的3D范例项目。
TIM截图20190615185249.jpg

186*****197

赞同来自:

引擎版本2.0.2

186*****197

赞同来自:

找到问题了,引擎更新后文档和示例没更新。
 
新的方法是new Laya.PrimitiveMesh.create【加上对应体的名字】。
如圆柱是:new Laya.PrimitiveMesh.create Cylinder()
 

要回复问题请先

商务合作
商务合作