# I want to move all the actors in a project at once

**URL:** <https://forums.unrealengine.com/t/i-want-to-move-all-the-actors-in-a-project-at-once/485763>\
**Category:** Blueprint\
**Tags:** Script, unreal-engine, transform, editor, Blueprint, question\
**Created:** [July 5, 2021, 11:46am UTC](https://forums.unrealengine.com/t/i-want-to-move-all-the-actors-in-a-project-at-once/485763 "2021-07-05T11:46:35Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_385e6454](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_385e6454](https://forums.unrealengine.com/u/anonymous_user_385e6454)\
**Post date:** [July 5, 2021, 11:46am UTC](https://forums.unrealengine.com/t/i-want-to-move-all-the-actors-in-a-project-at-once/485763/1 "2021-07-05T11:46:35Z")

</div>

Hi,

I have a project with +100k actors and I need to move them all up substracting -21180.0 to their z position.  
It is impossible to do it manually because the editor cannot handle such a number of actors.

I am sure that there is a simple solution with a button in a blueprint script. The must happen when the game is not running, so it is an in editor function.

If anyone can give me a small script or a tutorial about how to loop between all the actors and transform them to a different position that will help me.

Thanks

---

<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:** [July 5, 2021, 12:12pm UTC](https://forums.unrealengine.com/t/i-want-to-move-all-the-actors-in-a-project-at-once/485763/2 "2021-07-05T12:12:09Z")

</div>

Create a new utility widget, add a button, makes sure to specify class from the dropdown, add script:

 ![343290-screenshot-2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/c/a/2ca2839e4c0e15eb7fce3e48f693527b95bc1b55.png)

Run the widget.

---

<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:** [July 5, 2021, 12:14pm UTC](https://forums.unrealengine.com/t/i-want-to-move-all-the-actors-in-a-project-at-once/485763/3 "2021-07-05T12:14:00Z")

</div>

> I am sure that there is a simple  
> solution with a button in a blueprint  
> script.

The EUW can be made like so:

![343301-screenshot-1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/e/3/8e3c8bb8afe08301d9170f243577a2643e398409.png)

Running it:

![343302-screenshot-3.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/c/3/bc3034414f00cdedcab3ebbcc81448aae38613c1.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_385e6454](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_385e6454](https://forums.unrealengine.com/u/anonymous_user_385e6454)\
**Post date:** [July 5, 2021, 1:07pm UTC](https://forums.unrealengine.com/t/i-want-to-move-all-the-actors-in-a-project-at-once/485763/4 "2021-07-05T13:07:14Z")

</div>

Great answer, it worked but not with the foliage. Any solution to move the foliage as well?

---

<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:** [July 5, 2021, 1:28pm UTC](https://forums.unrealengine.com/t/i-want-to-move-all-the-actors-in-a-project-at-once/485763/5 "2021-07-05T13:28:07Z")

</div>

Should be the same - Instanced Foliage Class is the class afair.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_385e6454](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_385e6454](https://forums.unrealengine.com/u/anonymous_user_385e6454)\
**Post date:** [July 6, 2021, 5:01am UTC](https://forums.unrealengine.com/t/i-want-to-move-all-the-actors-in-a-project-at-once/485763/6 "2021-07-06T05:01:57Z")

</div>

Yes, it works, but when you use GetAllLevelActors, it does not take the foliage. I guess it is not considered as an actor.  
Thanks

---

<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:** [July 6, 2021, 5:48am UTC](https://forums.unrealengine.com/t/i-want-to-move-all-the-actors-in-a-project-at-once/485763/7 "2021-07-06T05:48:25Z")

</div>

I mean use the class filter, for the class I mentioned.
