unity make 2d pbject invisible code example Example: make sprite invisible unity gameObject.renderer.enabled= false;