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

**URL:** <https://forums.unrealengine.com/t/is-it-possible-to-directly-reference-components-of-other-actors-in-blueprint/444797>\
**Category:** Editor Scripting\
**Tags:** reference, actor-blueprint, object-reference, unreal-engine, question\
**Created:** [March 7, 2019, 10:11am UTC](https://forums.unrealengine.com/t/is-it-possible-to-directly-reference-components-of-other-actors-in-blueprint/444797 "2019-03-07T10:11:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![limbusdev](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@limbusdev](https://forums.unrealengine.com/u/limbusdev)\
**Post date:** [March 7, 2019, 10:11am UTC](https://forums.unrealengine.com/t/is-it-possible-to-directly-reference-components-of-other-actors-in-blueprint/444797/1 "2019-03-07T10:11:36Z")

</div>

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 `Actor`s 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()`).

 ![270540-01.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/2/c/22c37d8c68cf889989daacbc040e7fde24e29e83.png)

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.

 ![270551-02.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/1/1/111a3a93cc08529c335aa0ee286bfd6459a675c0.png)

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.

 ![270552-03.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/4/8/9485e4e0bc6ed2982bfc3f0acbcaf17ec0fa4f90.png)

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 🙂

---

<div class="post-metadata">

**Author:** ![limbusdev](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@limbusdev](https://forums.unrealengine.com/u/limbusdev)\
**Post date:** [May 13, 2019, 5:17pm UTC](https://forums.unrealengine.com/t/is-it-possible-to-directly-reference-components-of-other-actors-in-blueprint/444797/2 "2019-05-13T17:17:37Z")

</div>

Seems it’s not possible right now.

---

<div class="post-metadata">

**Author:** ![KircheschM](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KircheschM](https://forums.unrealengine.com/u/KircheschM)\
**Post date:** [August 6, 2021, 7:03pm UTC](https://forums.unrealengine.com/t/is-it-possible-to-directly-reference-components-of-other-actors-in-blueprint/444797/3 "2021-08-06T19:03:58Z")

</div>

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