[C++] How to get/pass reference to bluprint's component

I’m so glad I found this thread. I’m used to unity c# where you can simply get a component reference by typing one simple line of code and get the explicit reference to the exact component you set up in the inspector before that. I’m blown away that unreal doesn’t have a similar feature. Having to get all components with tag just to find one of the components attached to the same actor just seems mediocre at best.

I guess I’ll have to venture back into the Stone Age to access a simple component on my actor.

1 Like