Is there a way to toggle a cubes mesh or box collider with a button?

im trying to make a couch with a collider that you can toggle on and off but i cant find out how to im pretty new to udon so im still trying to learn so if anyone knows how thanks!

What do you have so far?

i have a object toggle and a global object toggle script but i can’t figure out how to make a collider toggle with a button
but other then the object toggle script nothing

You need to use this then
image

Give it the requires variables and that will toggle the collider on/off.
It’s the same with mesh, but that is called MeshRenderer

ah ok thanks a bunch