Is it possible to directly reference components of other actors in BluePrint?

Hi there,
I am new to Unreal but have lots of experience in Unity. I know, it is not the same, but I guess there are ways to achieve the same and I simply do not know how.

So, my question is: Can I set an object reference in the editor to another Actors Component?

I have an Actor BluePrint Goal_BP with a CollsionComponent and another Actor GoalCounter with a GoalCounterComponent_BP ActorComponent. Goal_BP has a public variable of type GoalCounterComponent_BP to call it’s methods on collision events (GoalCounterComponent::OnGoal()).

In Unity I would simply drag the Actor GoalCounter, which contains the Component GoalCounterComponent_BP to the variable to reference it there. In Unreal I can click to open a dropdown, but neither the Actor nor it’s component shows up.

I know I can reference the Actor itself and get the component via GetComponentByClass(GoalCounterComponent_BP) which has the issue, that the given actor might not have such a component.

Whats the proper way to do this? So, how can I achive Picture 1 without doing what I did in Picture 3?

Sorry for the long text and thanks for having a look :slight_smile:

Seems it’s not possible right now.

UPROPERTY(meta = (UseComponentPicker, AllowedClasses=“ClassName”))
FComponentReference ComponentReference;

4 Likes