How to handle when out of AIPerception detection range??

Sorry, the issue has been resolved.
Thank you illspiritx!!

The way I did it was simple, I changed “BT_Detection” and “BT_NotDetection”
This method involves swapping them within the behavior tree and changing only the name to make the AI’s movements easier to understand. I don’t know if this method is correct, but I have confirmed that it works.
If there is a better way, I would be very grateful if you could let me know.