# How to select (in blueprint) multiple of actors from scene?

**URL:** <https://forums.unrealengine.com/t/how-to-select-in-blueprint-multiple-of-actors-from-scene/309251>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [March 4, 2015, 10:29pm UTC](https://forums.unrealengine.com/t/how-to-select-in-blueprint-multiple-of-actors-from-scene/309251 "2015-03-04T22:29:16Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_d1c0a6e61](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_d1c0a6e61](https://forums.unrealengine.com/u/anonymous_user_d1c0a6e61)\
**Post date:** [March 4, 2015, 10:29pm UTC](https://forums.unrealengine.com/t/how-to-select-in-blueprint-multiple-of-actors-from-scene/309251/1 "2015-03-04T22:29:16Z")

</div>

Hey, What I need to do is to select/find multiple of object(blueprints) on scene and for example hide them all.  
I tried do it with tags, folders(in outliner) or layers, but it’s not working (or what is more possible I’m doing it wrong).

---

<div class="post-metadata">

**Author:** ![Deventico\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Deventico\_1](https://forums.unrealengine.com/u/Deventico_1)\
**Post date:** [March 4, 2015, 10:34pm UTC](https://forums.unrealengine.com/t/how-to-select-in-blueprint-multiple-of-actors-from-scene/309251/2 "2015-03-04T22:34:29Z")

</div>

I’d use the _Get All Actors of Class_ Node.

You can choose the class of actors you want to have and get an array of all of those actors in the scene.

When you have them, you can further differentiate between them using tags, variables, etc.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_d1c0a6e61](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_d1c0a6e61](https://forums.unrealengine.com/u/anonymous_user_d1c0a6e61)\
**Post date:** [March 4, 2015, 11:03pm UTC](https://forums.unrealengine.com/t/how-to-select-in-blueprint-multiple-of-actors-from-scene/309251/3 "2015-03-04T23:03:30Z")

</div>

Thanks, yes, and after that -\>ForEachLoop, but how to change open/default var in those selected actors/blueprints?

---

<div class="post-metadata">

**Author:** ![DG\_Gage](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DG\_Gage](https://forums.unrealengine.com/u/DG_Gage)\
**Post date:** [March 4, 2015, 11:10pm UTC](https://forums.unrealengine.com/t/how-to-select-in-blueprint-multiple-of-actors-from-scene/309251/4 "2015-03-04T23:10:53Z")

</div>

Get All Actors of Class to get them. If you were wanting to change some kind of value within each one, you can do a Get or a ForEachLoop and get a specific actor, then you can do a Cast to [class name of actor in question] and plug in the actor you got from the Get All Actors of Class node for the target input. From there you’ll have access to any editable variables/functions/events within it. You can even use Get Primitive Component from the cast node, and plug that into a Cast To Primitive Component node. That gives you access to primitive attributes like physics, gravity, etc.

You could even do all of that from a ForEachLoop from the initial Get All Actors of Class node if you were wanting to apply some effect or change to all of them at once. Otherwise, you can use whatever parameters you need to get specific items and apply your changes/updates.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_d1c0a6e61](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_d1c0a6e61](https://forums.unrealengine.com/u/anonymous_user_d1c0a6e61)\
**Post date:** [March 4, 2015, 11:47pm UTC](https://forums.unrealengine.com/t/how-to-select-in-blueprint-multiple-of-actors-from-scene/309251/5 "2015-03-04T23:47:12Z")

</div>

In my case i cant even see this “AfterLoop” log, why?

 ![32363-getallactors.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/6/6/76612cfac759f63d4b14165435d2b57802e9b6b8.png)

---

<div class="post-metadata">

**Author:** ![DG\_Gage](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DG\_Gage](https://forums.unrealengine.com/u/DG_Gage)\
**Post date:** [March 4, 2015, 11:49pm UTC](https://forums.unrealengine.com/t/how-to-select-in-blueprint-multiple-of-actors-from-scene/309251/6 "2015-03-04T23:49:04Z")

</div>

I’m not sure what you mean. Are you wanting to see each actor or something?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_d1c0a6e61](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_d1c0a6e61](https://forums.unrealengine.com/u/anonymous_user_d1c0a6e61)\
**Post date:** [March 4, 2015, 11:52pm UTC](https://forums.unrealengine.com/t/how-to-select-in-blueprint-multiple-of-actors-from-scene/309251/7 "2015-03-04T23:52:56Z")

</div>

Hmm all I want is to select every objects with tag “set1” from scene and do somethink with them, for example scale to 0, or just make invisible.

---

<div class="post-metadata">

**Author:** ![DG\_Gage](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DG\_Gage](https://forums.unrealengine.com/u/DG_Gage)\
**Post date:** [March 4, 2015, 11:57pm UTC](https://forums.unrealengine.com/t/how-to-select-in-blueprint-multiple-of-actors-from-scene/309251/8 "2015-03-04T23:57:21Z")

</div>

Use a Get All Actors of Class node. Plug the array into a ForEachLoop. From there execute a Set Visibility node (or something like that; whatever you need) and plug the Array Element from the ForEachLoop into its target. That’ll apply that effect to every item of the class you got

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_d1c0a6e61](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_d1c0a6e61](https://forums.unrealengine.com/u/anonymous_user_d1c0a6e61)\
**Post date:** [March 5, 2015, 12:09am UTC](https://forums.unrealengine.com/t/how-to-select-in-blueprint-multiple-of-actors-from-scene/309251/9 "2015-03-05T00:09:32Z")

</div>

Hey man, it;s working, All i need to do was to select “Actor” from the list in GetAllActorsOfClass node. Thanks 🙂

---

<div class="post-metadata">

**Author:** ![DG\_Gage](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DG\_Gage](https://forums.unrealengine.com/u/DG_Gage)\
**Post date:** [March 5, 2015, 12:11am UTC](https://forums.unrealengine.com/t/how-to-select-in-blueprint-multiple-of-actors-from-scene/309251/10 "2015-03-05T00:11:31Z")

</div>

No problem! Go ahead and mark the answer as accepted for anyone who may stumble upon it.

---

<div class="post-metadata">

**Author:** ![Deventico\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Deventico\_1](https://forums.unrealengine.com/u/Deventico_1)\
**Post date:** [March 5, 2015, 12:16am UTC](https://forums.unrealengine.com/t/how-to-select-in-blueprint-multiple-of-actors-from-scene/309251/11 "2015-03-05T00:16:02Z")

</div>

I assume you have your objects on the map.

If so, you can just add a variable to the blueprint and make it editable (maybe you also need to tick ‘expose on spawn’). When you did this, you can select the actors on the map and edit their variables in the ‘Details’ Tab.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_d1c0a6e61](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_d1c0a6e61](https://forums.unrealengine.com/u/anonymous_user_d1c0a6e61)\
**Post date:** [March 5, 2015, 12:20am UTC](https://forums.unrealengine.com/t/how-to-select-in-blueprint-multiple-of-actors-from-scene/309251/12 "2015-03-05T00:20:34Z")

</div>

Hey, true, but how to change this exposed value from other blueprint?

---

<div class="post-metadata">

**Author:** ![Deventico\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Deventico\_1](https://forums.unrealengine.com/u/Deventico_1)\
**Post date:** [March 5, 2015, 12:22am UTC](https://forums.unrealengine.com/t/how-to-select-in-blueprint-multiple-of-actors-from-scene/309251/13 "2015-03-05T00:22:49Z")

</div>

Once you got that actor reference from that ForEachLoop you can drag from this blue point and just type the name of your variable. Then the nodes get filtered, so that you can choose a SetYourVariable-Node and a GetYourVariable-Node.

---

<div class="post-metadata">

**Author:** ![NotReal1\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NotReal1\_1](https://forums.unrealengine.com/u/NotReal1_1)\
**Post date:** [July 13, 2015, 9:52pm UTC](https://forums.unrealengine.com/t/how-to-select-in-blueprint-multiple-of-actors-from-scene/309251/14 "2015-07-13T21:52:11Z")

</div>

why this Actor Class list doesnt have StaticMeshActor class listed?
