# 'World context object' for Get all actors of class? 

**URL:** <https://forums.unrealengine.com/t/world-context-object-for-get-all-actors-of-class/547754>\
**Category:** Blueprint\
**Tags:** Blueprint-Utilities, unreal-engine, question, Blueprint, UE4-27\
**Created:** [May 3, 2022, 3:10pm UTC](https://forums.unrealengine.com/t/world-context-object-for-get-all-actors-of-class/547754 "2022-05-03T15:10:39Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![JasonTimm](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JasonTimm](https://forums.unrealengine.com/u/JasonTimm)\
**Post date:** [May 3, 2022, 3:10pm UTC](https://forums.unrealengine.com/t/world-context-object-for-get-all-actors-of-class/547754/1 "2022-05-03T15:10:39Z")

</div>

I’m working inside an editor utility object BP and I’m trying to get all actor of class, however it asks for a world context object. At the minute I’ve just placed an empty actor BP inside the level and then i’m getting this as a variable and piping it into the world context object but this doesn’t seems to be working.

I’m trying to get a level sequence actor from the level and open it with the press of a button from my monogram console without have to find the actor in level as I don’t want to use get selected actors. Is there something I should be using for world context object? Any help would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![Roy\_Wierer.Seda145](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/roy_wierer.seda145/32/906551_2.png) [@Roy\_Wierer.Seda145](https://forums.unrealengine.com/u/Roy_Wierer.Seda145)\
**Post date:** [May 3, 2022, 3:14pm UTC](https://forums.unrealengine.com/t/world-context-object-for-get-all-actors-of-class/547754/2 "2022-05-03T15:14:14Z")

</div>

GetEditorWorld (UEditorLevelLibrary)  
Should be callable from blueprints as a world context for the editor utility.

---

<div class="post-metadata">

**Author:** ![JasonTimm](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JasonTimm](https://forums.unrealengine.com/u/JasonTimm)\
**Post date:** [May 3, 2022, 3:54pm UTC](https://forums.unrealengine.com/t/world-context-object-for-get-all-actors-of-class/547754/3 "2022-05-03T15:54:51Z")

</div>

Thanks for your reply. Unfortunately it is not callable from editor utility object BP.

---

<div class="post-metadata">

**Author:** ![Roy\_Wierer.Seda145](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/roy_wierer.seda145/32/906551_2.png) [@Roy\_Wierer.Seda145](https://forums.unrealengine.com/u/Roy_Wierer.Seda145)\
**Post date:** [May 3, 2022, 4:07pm UTC](https://forums.unrealengine.com/t/world-context-object-for-get-all-actors-of-class/547754/4 "2022-05-03T16:07:14Z")

</div>

A few weeks ago I read a post of someone who ran into the exact same problem here but I can not remember why the world / context wasn’t working… I see the options are a bit limited.

 ![Untitled](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/3/1/d31ddbbab2aa519599ae63cb2b0367cffd433421.jpeg)

Usually when I run into a case where I want to find an actor in the level I instead register them to one of my subsystems the moment I spawn them. You could make an editor subsystem which manages the actors directly.

> **[Programming Subsystems](https://docs.unrealengine.com/4.27/en-US/ProgrammingAndScripting/Subsystems/)**
>
> An overview of programming subsystems in Unreal Engine 4.

---

<div class="post-metadata">

**Author:** ![JasonTimm](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JasonTimm](https://forums.unrealengine.com/u/JasonTimm)\
**Post date:** [May 4, 2022, 9:54am UTC](https://forums.unrealengine.com/t/world-context-object-for-get-all-actors-of-class/547754/5 "2022-05-04T09:54:06Z")

</div>

Never worked with subsystems before. Will do some research and see if I can figure it out. Thanks for your help

---

<div class="post-metadata">

**Author:** ![real.dude](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@real.dude](https://forums.unrealengine.com/u/real.dude)\
**Post date:** [May 4, 2022, 10:52am UTC](https://forums.unrealengine.com/t/world-context-object-for-get-all-actors-of-class/547754/6 "2022-05-04T10:52:59Z")

</div>

Hi! Are you sure that you inherited your BP from ActorActionUtility? Cause GetEditorWorld is easily accessible here  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/0/1/7014aa37af9b3d221a31079005631cda2b4143b6.png)

---

<div class="post-metadata">

**Author:** ![JasonTimm](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JasonTimm](https://forums.unrealengine.com/u/JasonTimm)\
**Post date:** [May 5, 2022, 2:03pm UTC](https://forums.unrealengine.com/t/world-context-object-for-get-all-actors-of-class/547754/7 "2022-05-05T14:03:52Z")

</div>

I’m working from an editor utility object blueprint

---

<div class="post-metadata">

**Author:** ![jahjah771](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jahjah771](https://forums.unrealengine.com/u/jahjah771)\
**Post date:** [January 29, 2023, 2:33pm UTC](https://forums.unrealengine.com/t/world-context-object-for-get-all-actors-of-class/547754/8 "2023-01-29T14:33:18Z")

</div>

for ue 5.1  
 ![Screenshot 2023-01-29 173241](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/b/1/5b1d5b49abb09782e7832a96268f8e7afb495552.png)
