Replies: 1 comment 1 reply
-
you should add const [{ speed, u_bg, u_bgMain, u_color1, u_color2 }] = useControls(() => ({
Aurora: folder(
{
speed: { value: 0.02, min: 0, max: 0.1, step: 0.005 },
u_bg: { r: 29, g: 51, b: 83 },
u_bgMain: { r: 228, g: 177, b: 160 },
u_color1: { r: 228, g: 177, b: 160 },
u_color2: { r: 29, g: 51, b: 83 },
},
{
render: () => {
return visible; /// not listening for change
},
},
),
}), [visible]); |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
im trying to show folder dynamically but its not seem to detect the change of my visiblity variable pass as props
Beta Was this translation helpful? Give feedback.
All reactions