how to call a inactive object?

i put gameObject.active = false; to one of my object and i want to call it in another script, can i call that?

Depend of the context but in you other script you can set a public GameObject variable and drop your gameobject there. Thus, even if it’s not actve you can activate it.

Maybe you can make it

Public void example()
{
gameObject.active =false;

And the other script you can call it

void Start()
{
nameOfScript.example();