What is the name of this component and how can i have access to it in c#?

99831-ejemplo.png

How can i have access to it in code?
I want to make invisible an object.
For example to get acces to the component material you have to write:

Gameobject.renderer.material=“Material”

The part you circled isn’t actually a part of any component. Rather, it’s a property that all game objects have which determine if they are active or not. To change it in code, you would just do this:

gameObject.SetActive(false);

Also note, that this will not only make your gameObject invisible, but also inactive, so any updates of the game object will stop working as well. To just make it invisible, you might just want to disable the renderer like this:

GetComponent<MeshRenderer>().enabled = false;