Tresjs / lab

Showcase and examples lab for TresJS
https://lab.tresjs.org/
69 stars 12 forks source link

Events were failed when dynamically add object3d to primitive! #157

Closed fdkhb closed 3 weeks ago

fdkhb commented 1 month ago

Hello. I have encountered with a problem with events of component 'primitive'.

Problem

I initialize a primitive component to bond with an array as below: 2024-08-06_162636

`

` As result, the mesh2 created in OnMounted() can arise the 'pointer-enter' and 'click' events. But mesh1 created by clicking button failed to arise these two events. Eager to get your help.

alvarosabu commented 3 weeks ago

Hi @fdkhb this is not the correct place to open issues for Tres, please use https://github.com/Tresjs/tres/issues/new/choose