No such ability exists natively in Unity. You can find the closest and then check its layers (using a separate action).
Link to the tag issue? Anyways, checking a gameobjects layer wouldnt be any faster than checking its tag.
Thanks. It seems I can't use find the closest action anymore because it reduce frames when it go to find a object between 10,000 of other objects.
Anyway I'm thinking for another method but don't know how should I do that!
I wan't to disable all my empty objects or fsm on the object and enable some of those only around my character. So I'm going to use trigger enter but how can I get those objects inside a trigger?