# Import Actors from Text by Blueprints/C++

**URL:** <https://forums.unrealengine.com/t/import-actors-from-text-by-blueprints-c/475660>\
**Category:** World Creation\
**Tags:** world-outliner, unreal-engine, question\
**Created:** [December 9, 2020, 9:31am UTC](https://forums.unrealengine.com/t/import-actors-from-text-by-blueprints-c/475660 "2020-12-09T09:31:05Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Quilavar](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Quilavar](https://forums.unrealengine.com/u/Quilavar)\
**Post date:** [December 9, 2020, 9:31am UTC](https://forums.unrealengine.com/t/import-actors-from-text-by-blueprints-c/475660/1 "2020-12-09T09:31:05Z")

</div>

Hello there,

When copying objects within the World outliner, be in the Editor during runtime or not, it is possible to transfer these actors to other levels through Strg + C / Strg + V.  
What you get is a readable script you can even copy into a text file.

My question is whether it is possible to do the same process with logic like Blueprints or C++ so I can create an Editor Widget to streamline this by merely pressing buttons.

In my specific case I need to make changes during runtime in a Read-Only Level and copy these changed Actors into a different non-runtime level.

I’m thankful for any suggestions!

---

<div class="post-metadata">

**Author:** ![Kehel18](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kehel18](https://forums.unrealengine.com/u/Kehel18)\
**Post date:** [December 16, 2020, 4:28pm UTC](https://forums.unrealengine.com/t/import-actors-from-text-by-blueprints-c/475660/2 "2020-12-16T16:28:08Z")

</div>

Hi there! Do you need this in Editor? Or in Game itself?

---

<div class="post-metadata">

**Author:** ![Quilavar](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Quilavar](https://forums.unrealengine.com/u/Quilavar)\
**Post date:** [December 16, 2020, 5:15pm UTC](https://forums.unrealengine.com/t/import-actors-from-text-by-blueprints-c/475660/3 "2020-12-16T17:15:05Z")

</div>

Hi!  
I’d like to copy them during runtime and insert them during editor mode

It is surprisingly hard to find anything about that script that is being produced during the Crtl + C process

---

<div class="post-metadata">

**Author:** ![Kehel18](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kehel18](https://forums.unrealengine.com/u/Kehel18)\
**Post date:** [December 17, 2020, 3:37pm UTC](https://forums.unrealengine.com/t/import-actors-from-text-by-blueprints-c/475660/4 "2020-12-17T15:37:42Z")

</div>

Hello again!

1. Take a look at **UUnrealEdEngine** class. Specilly on this method

> **[UUnrealEdEngine::Exec\_Edit](https://docs.unrealengine.com/4.27/en-US/API/Editor/UnrealEd/Editor/UUnrealEdEngine/Exec_Edit/)**
>
> UnrealEdSrv stuff.

It is executed while processing CTRL+C / CTRL+V combination ).

1. The command text itself is generated by **ULevelFactory** class with its method

> **[FactoryCreateText](https://docs.unrealengine.com/4.27/en-US/API/Editor/UnrealEd/Factories/UFactory/FactoryCreateText/)**
>
> Overload list

---

<div class="post-metadata">

**Author:** ![Quilavar](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Quilavar](https://forums.unrealengine.com/u/Quilavar)\
**Post date:** [January 4, 2021, 9:05am UTC](https://forums.unrealengine.com/t/import-actors-from-text-by-blueprints-c/475660/5 "2021-01-04T09:05:43Z")

</div>

Hello Kehel18,

Thank you for pointing me in the right direction.

However it seems the second function does not “create into text” but rather “create from text” based on the added remark. So it is most likely the function to give the text buffer to.  
I have yet to find the function that actually converts the selected objects into the text unfortunately

---

<div class="post-metadata">

**Author:** ![Kehel18](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kehel18](https://forums.unrealengine.com/u/Kehel18)\
**Post date:** [January 4, 2021, 2:45pm UTC](https://forums.unrealengine.com/t/import-actors-from-text-by-blueprints-c/475660/6 "2021-01-04T14:45:07Z")

</div>

Look at this [UUnrealEdEngine::edactCopySelected | Unreal Engine Documentation](https://docs.unrealengine.com/en-US/API/Editor/UnrealEd/Editor/UUnrealEdEngine/edactCopySelected/index.html)
