Mixing Select and PivotControls on multi-selection #1495
Unanswered
epouliquen
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi All,
I'm trying to use PivotControls on a dynamic user selection (potentially multi) using Select.
The idea is to see PivotControl appears only if somthing is selected and only one PivotControl BB-centered if muti selection.
I'm trying to create on the fly children nodes based on 'useSelect()' hook content , but when something is unselected, it is unmounted from scene.. (please see 'map' function in MoveControl component)
So my question is : How can I pass selected React Node as PivotControl children as the only feedback of Select is a Object3D Array, not React nodes ?
Thanks for your help
Beta Was this translation helpful? Give feedback.
All reactions