How to detect this object (3d)


I want to detect this target object. Help

Detect can mean many things.
Do you want to see if it’s in range ? You can keep a list of objects and do a distance comparison
Do want to see if you’re aiming at it ? You can use raycast with a filter to avoid the gray objects and check if it’s has a specific component or name or whatever