What's the best way to move a reference to actor in UE?

I did search that question on google, but all the results were amateurish. I know that I can instantiate the actor in the module where I need the reference, or use GetAllActorsOfType. I don’t think that it is how professional studios do it because it is expensive and can get out of control in big projects. I am curious to know how to add the actors as a dependency, something that is similar to how you can can drag a gameobjects in the inspector of Unity.

If your code creates the thing, then just keep track of it to begin with. If your code didn’t create it, pass pointers around to it from code that did.

Do you have a more specific example of your question?