# \#get-all-actors-from-

**URL:** https://forums.unrealengine.com/tag/get-all-actors-from/5717.md

[Latest](https://forums.unrealengine.com/latest.md) · [Categories](https://forums.unrealengine.com/categories.md) · [Tags](https://forums.unrealengine.com/tags.md)

---

## [getAllActorsOfClass returns empty after packaging project](https://forums.unrealengine.com/t/getallactorsofclass-returns-empty-after-packaging-project/473304)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_c74e9f701](https://forums.unrealengine.com/u/anonymous_user_c74e9f701)\
**Replies:** 18\
**Last updated:** [December 24, 2025, 8:40am UTC](https://forums.unrealengine.com/t/getallactorsofclass-returns-empty-after-packaging-project/473304 "2025-12-24T08:40:39Z")

</div>

Hi there! I’m having some trouble dealing with getAllActorsOfClass after packaging my project. I’ve been setting camera system based on this \[tutorial \]\[1\] (it has 4 parts, i followed all of them), and if in PlayInEdito…

---

## [Alternative to "Get all actors from Class"?](https://forums.unrealengine.com/t/alternative-to-get-all-actors-from-class/453955)

<div class="topic-metadata">

**Author:** [@Dark\_Jubei](https://forums.unrealengine.com/u/Dark_Jubei)\
**Replies:** 8\
**Last updated:** [April 18, 2025, 9:36pm UTC](https://forums.unrealengine.com/t/alternative-to-get-all-actors-from-class/453955 "2025-04-18T21:36:08Z")

</div>

Hi, I’m heavy into blueprinting at the moment, and i understand the “Get all actors of Class” node is a little heavy. It seems to work find on the projects I’m working on currently, I was just wondering if there was a c…

---

## [Get object by class on begin play doesn't get objects located on sublevels not streamed yet despite being on persistent level](https://forums.unrealengine.com/t/get-object-by-class-on-begin-play-doesnt-get-objects-located-on-sublevels-not-streamed-yet-despite-being-on-persistent-level/489211)

<div class="topic-metadata">

**Author:** [@LukeBennetto](https://forums.unrealengine.com/u/LukeBennetto)\
**Replies:** 2\
**Last updated:** [September 26, 2021, 7:57am UTC](https://forums.unrealengine.com/t/get-object-by-class-on-begin-play-doesnt-get-objects-located-on-sublevels-not-streamed-yet-despite-being-on-persistent-level/489211 "2021-09-26T07:57:39Z")

</div>

You might need a re-think. You can’t spawn them all on begin play for two reasons: Your game will hitch really badly for quite a long time Assuming your stream them out again, the references wont be valid anyway. …

---

## [Get all actors from class changes](https://forums.unrealengine.com/t/get-all-actors-from-class-changes/459339)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_0202af0f1](https://forums.unrealengine.com/u/anonymous_user_0202af0f1)\
**Replies:** 4\
**Last updated:** [December 10, 2019, 10:42pm UTC](https://forums.unrealengine.com/t/get-all-actors-from-class-changes/459339 "2019-12-10T22:42:52Z")

</div>

i’m working on a maze generator and i made a function that finds the neighbors of a cell and returns a random neighbor (i have a one dimensional array so i used a i+j\*cols equation, and each time i add or subtract 1 from…

---

## [GetAllActorsOfClass(): Cannot convert from TArray\<\> to TArray\<\> &](https://forums.unrealengine.com/t/getallactorsofclass-cannot-convert-from-tarray-to-tarray/313978)

<div class="topic-metadata">

**Author:** [@asperatology](https://forums.unrealengine.com/u/asperatology)\
**Replies:** 6\
**Last updated:** [May 7, 2019, 9:02am UTC](https://forums.unrealengine.com/t/getallactorsofclass-cannot-convert-from-tarray-to-tarray/313978 "2019-05-07T09:02:26Z")

</div>

\[I am following the answers from here\]\[1\], but I still couldn’t pass in the TArray into UGameplayStatics::GetAllActorsOfClass(). This is how my code looks like: #include "GetDebt.h" #include "../Player/Machine/BaseFram…

---

## [Another Work Around For Get All Actors Of Class?](https://forums.unrealengine.com/t/another-work-around-for-get-all-actors-of-class/447207)

<div class="topic-metadata">

**Author:** [@Voyager\_871](https://forums.unrealengine.com/u/Voyager_871)\
**Replies:** 2\
**Last updated:** [April 14, 2019, 9:56pm UTC](https://forums.unrealengine.com/t/another-work-around-for-get-all-actors-of-class/447207 "2019-04-14T21:56:58Z")

</div>

I do not understand how to solve this problem, yet I do understand it. The best way to explain it is that I set up a camera system where when the player goes up to an ammo box and presses “Q” the camera view will switch …

---

## [Item Spawner BP giving Get Item Error?](https://forums.unrealengine.com/t/item-spawner-bp-giving-get-item-error/443318)

<div class="topic-metadata">

**Author:** [@Deygus](https://forums.unrealengine.com/u/Deygus)\
**Replies:** 9\
**Last updated:** [February 13, 2019, 6:08pm UTC](https://forums.unrealengine.com/t/item-spawner-bp-giving-get-item-error/443318 "2019-02-13T18:08:55Z")

</div>

I am trying to create a blueprint that spawns items that fall from targets or box area in the sky above kinda so that the player can dodge them without being killed. Basically, for extra game development/blueprinting pr…

---

## [Custom text for 3D Widget - Get all Actors of Class](https://forums.unrealengine.com/t/custom-text-for-3d-widget-get-all-actors-of-class/402684)

<div class="topic-metadata">

**Author:** [@Crossbones93](https://forums.unrealengine.com/u/Crossbones93)\
**Replies:** 1\
**Last updated:** [November 9, 2018, 1:57pm UTC](https://forums.unrealengine.com/t/custom-text-for-3d-widget-get-all-actors-of-class/402684 "2018-11-09T13:57:53Z")

</div>

Hi! I’m trying to get specific actors from my level and then display a custom text on each of them (that has already been assigned on the specific actor instances in the level through a variable). This is my widget, wh…

---

## [Best practices: Minimap Tracking System](https://forums.unrealengine.com/t/best-practices-minimap-tracking-system/315168)

<div class="topic-metadata">

**Author:** [@Raidfire.Net](https://forums.unrealengine.com/u/Raidfire.Net)\
**Replies:** 2\
**Last updated:** [July 18, 2018, 6:08pm UTC](https://forums.unrealengine.com/t/best-practices-minimap-tracking-system/315168 "2018-07-18T18:08:18Z")

</div>

Hi, i have created a minimap with render target, scene capture 2d and a material that puts all the stuff together and draws the whole minimap. It works, but now i want to add little points for characters or enemies and…

---

## [Get all actors in construction script](https://forums.unrealengine.com/t/get-all-actors-in-construction-script/426444)

<div class="topic-metadata">

**Author:** [@Imagine-Games](https://forums.unrealengine.com/u/Imagine-Games)\
**Replies:** 3\
**Last updated:** [June 1, 2018, 10:10pm UTC](https://forums.unrealengine.com/t/get-all-actors-in-construction-script/426444 "2018-06-01T22:10:01Z")

</div>

Hello, I have save points in my game, and I usually override their behavior for testing allowing me to start from any save point by just checking a boolean in their construction script. The problem is that if I have 2 …

---

## [UE4 Blueprints Multiplayer Get Variable From Same Class Not Working](https://forums.unrealengine.com/t/ue4-blueprints-multiplayer-get-variable-from-same-class-not-working/423673)

<div class="topic-metadata">

**Author:** [@MarsMiner](https://forums.unrealengine.com/u/MarsMiner)\
**Replies:** 4\
**Last updated:** [May 3, 2018, 4:49pm UTC](https://forums.unrealengine.com/t/ue4-blueprints-multiplayer-get-variable-from-same-class-not-working/423673 "2018-05-03T16:49:48Z")

</div>

Hi all, I am working on a blueprints multiplayer game and am having some difficulties. I need to be able to access some values about ALL the players. What I am currently doing is (in the character blueprint) doing get a…

---

## [Get all actors controller](https://forums.unrealengine.com/t/get-all-actors-controller/412191)

<div class="topic-metadata">

**Author:** [@g0n](https://forums.unrealengine.com/u/g0n)\
**Replies:** 3\
**Last updated:** [December 13, 2017, 11:09pm UTC](https://forums.unrealengine.com/t/get-all-actors-controller/412191 "2017-12-13T23:09:23Z")

</div>

Hello all! I expose my problem: When you press V, just get all players who have a Controller, print how many are and enter in a For Each Loop just printing each controller on screen. What I get from Server is 2 contro…

---

## [Cost of Get All Actors of Class](https://forums.unrealengine.com/t/cost-of-get-all-actors-of-class/303249)

<div class="topic-metadata">

**Author:** [@sidno](https://forums.unrealengine.com/u/sidno)\
**Replies:** 9\
**Last updated:** [November 17, 2017, 8:06pm UTC](https://forums.unrealengine.com/t/cost-of-get-all-actors-of-class/303249 "2017-11-17T20:06:05Z")

</div>

Calling this once per blueprint widget (UMG) tick to grab players and bots (ShooterCharacter). Bad idea? Is this a brute force search or is this query optimized in someway (spatial partition, actor pools)?

---

## [SpawnActor Get data from Other Blueprint without using event](https://forums.unrealengine.com/t/spawnactor-get-data-from-other-blueprint-without-using-event/408879)

<div class="topic-metadata">

**Author:** [@emperor\_katax](https://forums.unrealengine.com/u/emperor_katax)\
**Replies:** 13\
**Last updated:** [November 6, 2017, 7:20pm UTC](https://forums.unrealengine.com/t/spawnactor-get-data-from-other-blueprint-without-using-event/408879 "2017-11-06T19:20:42Z")

</div>

Here is my approach for solving issue. Please feel free to add any comments or suggestions. … ; \] 1- Assume you have a Spawner blueprint class. This class make numbers of SpawnActors at runtime. Each Actor has a “Public…

---

## [Multiplayer Respawn issue with "get all actors from class"](https://forums.unrealengine.com/t/multiplayer-respawn-issue-with-get-all-actors-from-class/389719)

<div class="topic-metadata">

**Author:** [@kelindi](https://forums.unrealengine.com/u/kelindi)\
**Replies:** 1\
**Last updated:** [July 10, 2017, 2:41pm UTC](https://forums.unrealengine.com/t/multiplayer-respawn-issue-with-get-all-actors-from-class/389719 "2017-07-10T14:41:42Z")

</div>

I have been trying to make a Multiplayer respawn system for my game and have been stuck for 2 weeks now. I have narrowed down the problem to this section of my blueprints (the picture). The “get all actors from class” pr…

---

## [Macro need force compile?](https://forums.unrealengine.com/t/macro-need-force-compile/391129)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_108e793a](https://forums.unrealengine.com/u/anonymous_user_108e793a)\
**Replies:** 0\
**Last updated:** [April 17, 2017, 2:17pm UTC](https://forums.unrealengine.com/t/macro-need-force-compile/391129 "2017-04-17T14:17:01Z")

</div>

Hi, I am not sure if it s an issue, or I am doing something wrong. But I created a macro to get multiple actor from class at once. Inputs are only exec, output is a list of actor reference(each output variables setup f…

---

## [Noob question about Casting/Overlapping Trigger](https://forums.unrealengine.com/t/noob-question-about-casting-overlapping-trigger/384748)

<div class="topic-metadata">

**Author:** [@Xanadron](https://forums.unrealengine.com/u/Xanadron)\
**Replies:** 11\
**Last updated:** [February 14, 2017, 11:23am UTC](https://forums.unrealengine.com/t/noob-question-about-casting-overlapping-trigger/384748 "2017-02-14T11:23:58Z")

</div>

Hi, i am trying to create a climbing system so i started by creating a blueprint which is based on a trigger box and an arrow which is supposed to be the wall rotation and location. I am using a ‘‘move component to’’ to …

---

## [How can i get a blueprint instance's component in cpp?](https://forums.unrealengine.com/t/how-can-i-get-a-blueprint-instances-component-in-cpp/381414)

<div class="topic-metadata">

**Author:** [@iwingn](https://forums.unrealengine.com/u/iwingn)\
**Replies:** 2\
**Last updated:** [January 10, 2017, 2:32pm UTC](https://forums.unrealengine.com/t/how-can-i-get-a-blueprint-instances-component-in-cpp/381414 "2017-01-10T14:32:35Z")

</div>

I create a blueprint and add a spline component in it.Then I place and edit it in edit ,wish it can be used as a route for some kind of creature. The question is how to get the actor placed in the level,and how to get i…

---

## [How do I remove items from an array efficiently?](https://forums.unrealengine.com/t/how-do-i-remove-items-from-an-array-efficiently/378523)

<div class="topic-metadata">

**Author:** [@VagrantProfile](https://forums.unrealengine.com/u/VagrantProfile)\
**Replies:** 1\
**Last updated:** [December 6, 2016, 8:23pm UTC](https://forums.unrealengine.com/t/how-do-i-remove-items-from-an-array-efficiently/378523 "2016-12-06T20:23:23Z")

</div>

Hey Guys, So I’m currently making a Pac-Man game in UE4. I want to make it, so that my level is over when Pac-Man collects all of the pellets I’ve placed around the level. I’ve created a Pellet Blueprint and have plac…

---

## [Get All Actors of Class fails in Sublevel without a Delay!](https://forums.unrealengine.com/t/get-all-actors-of-class-fails-in-sublevel-without-a-delay/349339)

<div class="topic-metadata">

**Author:** [@Mercurial\_Forge](https://forums.unrealengine.com/u/Mercurial_Forge)\
**Replies:** 1\
**Last updated:** [March 3, 2016, 7:53pm UTC](https://forums.unrealengine.com/t/get-all-actors-of-class-fails-in-sublevel-without-a-delay/349339 "2016-03-03T19:53:27Z")

</div>

STEPS: Create a MainMap (This will be the persistent map) Create a SubMap (This is added to the persistent map - MainMap) Add an input event to the MainMap that will load and set visibility (true) of the “SubMap” Creat…

---

## [Using editable variables?](https://forums.unrealengine.com/t/using-editable-variables/339658)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_0e3d41b3](https://forums.unrealengine.com/u/anonymous_user_0e3d41b3)\
**Replies:** 8\
**Last updated:** [November 26, 2015, 5:34pm UTC](https://forums.unrealengine.com/t/using-editable-variables/339658 "2015-11-26T17:34:07Z")

</div>

I am trying to develop this method of door teleporting through the use of booleans and waypoints. The game consists of heading to doors that will lead to different places in different conditions. What I do is: -check i…

---

## [How to cast to non-player character blueprints?](https://forums.unrealengine.com/t/how-to-cast-to-non-player-character-blueprints/317003)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_b76c66151](https://forums.unrealengine.com/u/anonymous_user_b76c66151)\
**Replies:** 3\
**Last updated:** [August 19, 2015, 3:45pm UTC](https://forums.unrealengine.com/t/how-to-cast-to-non-player-character-blueprints/317003 "2015-08-19T15:45:37Z")

</div>

I believe my problem is the engine wants me to specify what instance of my NPC character blueprint to cast to, but I cannot specify because I want what I’m doing to apply to all members of this class. For example, Animat…

---

## [Get all actors of class/casting can only modify one array instance per cast? (lights and lightswitch)](https://forums.unrealengine.com/t/get-all-actors-of-class-casting-can-only-modify-one-array-instance-per-cast-lights-and-lightswitch/328664)

<div class="topic-metadata">

**Author:** [@JoshieZombie](https://forums.unrealengine.com/u/JoshieZombie)\
**Replies:** 6\
**Last updated:** [August 14, 2015, 3:33pm UTC](https://forums.unrealengine.com/t/get-all-actors-of-class-casting-can-only-modify-one-array-instance-per-cast-lights-and-lightswitch/328664 "2015-08-14T15:33:09Z")

</div>

I’ve got a light switch set up in my project with two blueprints: Lights\_BP, and LightSwitch\_BP. Upon overlap event I enable input. If I then hit E it will turn on my light. If I hit E again, my light will turn off. It …

---

## [Game Mode Accessing All Actors of a Class](https://forums.unrealengine.com/t/game-mode-accessing-all-actors-of-a-class/326557)

<div class="topic-metadata">

**Author:** [@Cmoritz](https://forums.unrealengine.com/u/Cmoritz)\
**Replies:** 15\
**Last updated:** [August 3, 2015, 3:15pm UTC](https://forums.unrealengine.com/t/game-mode-accessing-all-actors-of-a-class/326557 "2015-08-03T15:15:07Z")

</div>

So far from what I’ve come across, when trying to access my custom Player class in game mode, it breaks engine and once I close it I can’t reopen project until I go in my backups and get an older version of game mode tha…

---

## [I'm stupid and i need help with references](https://forums.unrealengine.com/t/im-stupid-and-i-need-help-with-references/324522)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_4b8dc753](https://forums.unrealengine.com/u/anonymous_user_4b8dc753)\
**Replies:** 8\
**Last updated:** [July 9, 2015, 12:56pm UTC](https://forums.unrealengine.com/t/im-stupid-and-i-need-help-with-references/324522 "2015-07-09T12:56:31Z")

</div>

ergh… I’ve been trying and trying to reference diffrent variables from diffrent classes for a while now. And i’ve figured out the part that “gets” the reference. But i can’t understand/find how to SET it up so it does…

---

## [\[4.7.6\] Child blueprint render bug](https://forums.unrealengine.com/t/4-7-6-child-blueprint-render-bug/318122)

<div class="topic-metadata">

**Author:** [@Niles](https://forums.unrealengine.com/u/Niles)\
**Replies:** 1\
**Last updated:** [May 13, 2015, 2:25pm UTC](https://forums.unrealengine.com/t/4-7-6-child-blueprint-render-bug/318122 "2015-05-13T14:25:07Z")

</div>

Ok, I’m not really sure if my title description is accurate… take a look at the description and repro steps below. In short: Under specific scripting conditions, child blueprints are failing to render in a stand alone o…

---

## [Child blueprint render bug?](https://forums.unrealengine.com/t/child-blueprint-render-bug/318120)

<div class="topic-metadata">

**Author:** [@Niles](https://forums.unrealengine.com/u/Niles)\
**Replies:** 0\
**Last updated:** [May 10, 2015, 8:29pm UTC](https://forums.unrealengine.com/t/child-blueprint-render-bug/318120 "2015-05-10T20:29:15Z")

</div>

Ok, I’m not really sure if my title description is accurate… take a look at the description and repro steps below. In short: Under specific scripting conditions, child blueprints are failing to render in a stand alone o…

---

## [Is it possible to "Get All Actors of Class" from code](https://forums.unrealengine.com/t/is-it-possible-to-get-all-actors-of-class-from-code/308170)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_e82d003a](https://forums.unrealengine.com/u/anonymous_user_e82d003a)\
**Replies:** 1\
**Last updated:** [February 26, 2015, 1:16pm UTC](https://forums.unrealengine.com/t/is-it-possible-to-get-all-actors-of-class-from-code/308170 "2015-02-26T13:16:15Z")

</div>

I’m pretty new to Unreal Engine and i’m trying to find a way to call this method from a c++ class, and not from blueprint (i’m not going to use them for this project), as explained here: https://docs.unrealengine.com/la…

---

## [Detecting pawns: Sphere collision overlap vs Get all actors of class](https://forums.unrealengine.com/t/detecting-pawns-sphere-collision-overlap-vs-get-all-actors-of-class/307933)

<div class="topic-metadata">

**Author:** [@Stormrage256](https://forums.unrealengine.com/u/Stormrage256)\
**Replies:** 4\
**Last updated:** [February 25, 2015, 4:06am UTC](https://forums.unrealengine.com/t/detecting-pawns-sphere-collision-overlap-vs-get-all-actors-of-class/307933 "2015-02-25T04:06:01Z")

</div>

Hi, I’m trying to have my AI units (Type A) detect other types of AI units (Type B) within a certain radius. At any time, this check would contain anywhere up to a maximum of 20 units. The map is not open world, and the …

---

## [correct way to get array of vars via casting method when using "get all actors of class"](https://forums.unrealengine.com/t/correct-way-to-get-array-of-vars-via-casting-method-when-using-get-all-actors-of-class/292381)

<div class="topic-metadata">

**Author:** [@bennetherwood](https://forums.unrealengine.com/u/bennetherwood)\
**Replies:** 0\
**Last updated:** [August 29, 2014, 7:20pm UTC](https://forums.unrealengine.com/t/correct-way-to-get-array-of-vars-via-casting-method-when-using-get-all-actors-of-class/292381 "2014-08-29T19:20:51Z")

</div>

i was what im doing wrong when using this setup to get vars from spawned class (blueprint), i think the array returns empty please be aware that this is a blueprint which is spawned in a blueprint which is spawned in an…

[Next page](https://forums.unrealengine.com/tag/get-all-actors-from/5717.md?match_all_tags=true&page=1&tags%5B%5D=get-all-actors-from-)
