how to disable game object but still visible

hi guys. I am new in unity. I am trying to disable a game object. i have tried the code gameObject.SetActive(false). It deactivated the game object but it also hide it. is there a code in which the game object would be disable but still visible??

can you please help me??

thanks a lot!

Disable the scripts on the gameobject instead of deactivating it. To do so, you need to set the enabled property on the script to false.