Check if there is an object at a postition.

Is there any way I can make a script search through the hierarchy and print true if one of the objects is at that position? I can’t figure out how to scan through the entire hierarchy.

use the ‘Transform’ type … this will return the list of all objects in the scene.

However as it says this is slow to query every frame so you might want to cache the results and add to it as you create new objects.

Could you “cheat” and use colliders?

You have to use Transform in your script.

Why not use the engine’s built-in features and place a cube at the point you wish to check, put a trigger collider on it and let it track what objects intersect it. You can optimise it further by using layers if you need to.