# Actor object reference not compatible with object reference

**URL:** <https://forums.unrealengine.com/t/actor-object-reference-not-compatible-with-object-reference/1139065>\
**Category:** Programming & Scripting\
**Tags:** how-to, how-can-i-fix-this, unreal-engine, question\
**Created:** [April 24, 2023, 8:50am UTC](https://forums.unrealengine.com/t/actor-object-reference-not-compatible-with-object-reference/1139065 "2023-04-24T08:50:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mr.Beluved](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mr.Beluved](https://forums.unrealengine.com/u/Mr.Beluved)\
**Post date:** [April 24, 2023, 8:50am UTC](https://forums.unrealengine.com/t/actor-object-reference-not-compatible-with-object-reference/1139065/1 "2023-04-24T08:50:20Z")

</div>

I’m following this ( [13: Unreal Chess: Game Mode Initialization - YouTube](https://www.youtube.com/watch?v=9tsFy2_cOsw&list=PLoYnNL3iBTr_wbXMgZ6Bk6vEit1y6cmPJ&index=13) ) tutorial but get this issue where my get array won’t connect to my set reference variable.

The Get and Length is connected to “get all actors of class”.

 ![Screenshot (2)](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/c/5/5c52219f092a79bb189f1c96701ecb59f9c60138.png)

---

<div class="post-metadata">

**Author:** ![3dRaven](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/3draven/32/906552_2.png) [@3dRaven](https://forums.unrealengine.com/u/3dRaven)\
**Post date:** [April 24, 2023, 9:01am UTC](https://forums.unrealengine.com/t/actor-object-reference-not-compatible-with-object-reference/1139065/2 "2023-04-24T09:01:54Z")

</div>

@Mr.Beluved Did you set the Board Ref variable to a type of “BP Board”? (3:38 of video) and your get all actors of class the class filter set to “BP Board”? (13:09)

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [April 24, 2023, 9:07am UTC](https://forums.unrealengine.com/t/actor-object-reference-not-compatible-with-object-reference/1139065/3 "2023-04-24T09:07:53Z")

</div>

The var is fine judging by the error message; but OP did this:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/d/d/fdd2543272b776806f16dceac812f733d95482a2.png)

@Mr.Beluved Disconnect all nodes from `Get All Actors of Class`. Select the class from the dropdown _first_, only then start dragging wires. The result if you do it in the corrects order:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/0/4/9046e2323f799b77ce5678e623568bb9f0b6a1bb.png)
