How can I change the visibility of a 3D object in unity using code?
simple on and off is
transform.renderer.enabled = false;
just change it true to make it visible.
Just beware if there’s a collider / collision detection going on, that will still happen regardless of the model’s visibility (i.e., stuff will appear to bounce off an invisible object).