Closed fanmingfei closed 2 years ago
另外一个问题 上次解决了 同一帧 添加 删除组件 删除不生效的问题 #145 以后 导致了一个新问题,添加对象的当前帧销毁对象,导致Transform组件没有被添加,在后续添加其他渲染组件的时候报错。
gameObject.destroy() gameObject.addComponent(new Img({ resource: 'xxx' }))
Please check if the PR fulfills these requirements
What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
What is the current behavior? (You can also link to an open issue here)
What is the new behavior (if this is a feature change)?
Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)
Other information: