Attach switch to wall/building?
How do i attatch a switch to a wall? I can spawn a switch make position it against the wall, but it will stay floating if i remove the wall.

Thanks in advance.
You need to set switch as child of wall
switch.SetParent(wall);​

for example