I implemented AI with my custom AIController class. I notice that for APlayerController, the game actually destroy the controller once the player exits the game. However, I haven’t seen any example of destroying AIController, so I wonder how will it get destroyed (if at all) ?
Thank you for answering. I just want to clarify on the last reference to it goes away. Does that mean it will be garbage collected?
Here is my scenario: I create a bunch of AI and have them spawn default controller with the custom AIcontroller class that I create. I play the game in the editor, and notice that the name of the controller is
Would the controller get destroyed if I press Stop on the editor ?
The problem is that unpossessing and leaving it has a massive performance impact in a large scale game. We need a way of turning it off completely or destroying it. This isn’t optimized: