You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I created a folder for a r3f project. I would like to check the model "part" that have been clicked on:
const [config, set, get] = useControls(() => ({
parts: folder(
{
gear: false,
shaft: false,
cylinder: false,
piston1: true,
piston2: false,
piston3: false,
},
{ collapsed: true },
),
all: false,
}))
return (
<group
onClick={(e) => {
const part = e.object.parent.name
hover(part)
let value = get(part)
set({ ??????? }). <--------------
}}
........
However, no matter what I try, I Always get:
ERROR
mappedPaths[p] is undefined
Any clue wold be welcome.
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions