hello everyone. I want to hide the wall that collides with the camera’s raycast and show the others. However, only one wall is hidden and shown. Where might the problem be? can you help?
Hello,
Regardless of your hide procedure, there is something strange with your node/mesh structure. If you comment line 685 (hidding procedure), then deleting all from 1 to 7 has no effect :
2 Likes
Indeed. Everything has been merged to ‘wall_8’ using substract or else (didn’t check the script).
Anyways there’s only one wall object left (wall_8) and besides, the function of hide says that if it includes(“wall”) it should… whatever… well, they all include ‘wall’ in the name, so what do you expect to happen?
1 Like
Thanks, I didn’t notice this before. Now when I reset the normal indexes and uvs data for each location at the end of the loop the problem is solved.