Scene3D的removeChild
-
@jkwang007 如果是 geometry,可以不用销毁
object
,直接重新设置geometry
即可let obj = new Object3D() let mr = obj.addComponent(MeshRenderer) mr.material = new LitMaterial() mr.geometry = new PlaneGeometry(...) // later ... // 直接创建新的 geometry 即可 mr.geometry = new PlaneGeometry(...)
刚才打错了代码~
-
@jkwang007 0.6.2已修复removeChild相关bug