I recently started to use behavior trees in Ue4. All is good but I need to disappear enemies when they are not close to the character for optimization purposes. I searched online for this but couldn’t find something that I can use.
Also, what is the best way to do this? I want them to almost not exist. Should I just destroy and spawn all over again?
You can add a sphere collision component in your character bleuprint and use the end overlap to trigger the destroy or whatever you want to use, maybe you can just make them invisible or so and stop the behaviour tree.