If I have a single actor in my level with a variable stored within it, how do I retrieve the variable efficiently?

Hi. Currently Im using “Get all actors of class” every tick, and the node says to use it with caution since it is resource intensive. What is the way to go to get a value from my Tracker actor?

If your actor is in your level by default, you can access it directly in your level blueprint.
If it isn’t, you can use GetAllActorsOfClass only one time (at the beginning), and store the result in a local variable. This way, you can access your actor whenever you want, with only one use of GetAllActorsOfClass.

Thanks man. Worked out great