Using GameObject.Find

How would I go about using GameObject.Find(“”); in C# I’ve tried doing it the same way but its just not working.

I want to get the code to look for an object that is in my project view even if its a child to another object.

Can anyone help me?

You should be able to use this line to access another active GameObject within your scene view, even if it’s the child of another GameObject:

GameObject.Find("Object Name Here")

If you’re trying to access something in your project but outside of the current scene, you’ll have to assign it via an inspector reference or load it from a Resource folder using Resources.Load(“Prefab Name”).