Is there a simple and effective way to find a specific object in an array by its display name using blueprints.
For example, i have an array of my projectiles in the game and i want to specifically look up individual projectiles by their display name as the game might change the order of the objects when using get all actors of class.
If you do have an array of the objects, you can use FindByPredicate if you are fine with C++, otherwise you could replicate the functionality in BP by iterating through each element of the array and comparing its display name to the desired value. Anything that’s GetAllActors related is slow and shouldn’t be used every frame
Object name I think might be build-safe but I’d test it… better is use tag or otherwise identify by some sort of ID. If projectiles are always of the same class you can assign an instance editable variable that is unique to each instance.