# Unity's prefab in Unreal Engine 4

**URL:** <https://forums.unrealengine.com/t/unitys-prefab-in-unreal-engine-4/471368>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [September 15, 2020, 10:08am UTC](https://forums.unrealengine.com/t/unitys-prefab-in-unreal-engine-4/471368 "2020-09-15T10:08:43Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gurulis99](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Gurulis99](https://forums.unrealengine.com/u/Gurulis99)\
**Post date:** [September 15, 2020, 10:08am UTC](https://forums.unrealengine.com/t/unitys-prefab-in-unreal-engine-4/471368/1 "2020-09-15T10:08:43Z")

</div>

Hello guys,

is there a way to save blueprint’s transform so that whenever we spawn them to have the exact same transform we gave them? (spawn them without hard-coding the transform). I have only thought of using a child component and saving there the transform, is there any other way?

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![expose](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@expose](https://forums.unrealengine.com/u/expose)\
**Post date:** [September 15, 2020, 10:55am UTC](https://forums.unrealengine.com/t/unitys-prefab-in-unreal-engine-4/471368/2 "2020-09-15T10:55:02Z")

</div>

hey there!  
you mean you want to spawn every time that pawn with the same location/rotation and scale?

---

<div class="post-metadata">

**Author:** ![Gurulis99](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Gurulis99](https://forums.unrealengine.com/u/Gurulis99)\
**Post date:** [September 15, 2020, 11:13am UTC](https://forums.unrealengine.com/t/unitys-prefab-in-unreal-engine-4/471368/3 "2020-09-15T11:13:08Z")

</div>

In Unity, we can edit the transform (translate,rotate,scale) of a prefab/blueprint and then save the transform. Thus, when we spawn it, it will have this exact transform. You cal also edit the Transform of a prefab/blueprint from the content browser is unity, but i think UE4 doesnt have this feature.

---

<div class="post-metadata">

**Author:** ![Mi.Wang](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mi.Wang](https://forums.unrealengine.com/u/Mi.Wang)\
**Post date:** [September 15, 2020, 11:13am UTC](https://forums.unrealengine.com/t/unitys-prefab-in-unreal-engine-4/471368/4 "2020-09-15T11:13:12Z")

</div>

Well, the best fit for this need at the moment I believe is just save that as a level, and just use load level instance to stream that level in.

---

<div class="post-metadata">

**Author:** ![Gurulis99](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Gurulis99](https://forums.unrealengine.com/u/Gurulis99)\
**Post date:** [September 16, 2020, 6:33am UTC](https://forums.unrealengine.com/t/unitys-prefab-in-unreal-engine-4/471368/5 "2020-09-16T06:33:21Z")

</div>

Can you show a bit of code or a picture? I did not understand the load level thing and the stream.

---

<div class="post-metadata">

**Author:** ![expose](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@expose](https://forums.unrealengine.com/u/expose)\
**Post date:** [September 16, 2020, 11:04am UTC](https://forums.unrealengine.com/t/unitys-prefab-in-unreal-engine-4/471368/6 "2020-09-16T11:04:17Z")

</div>

hey there. level streaming is a method that can dynamicly open / close levels winthin a persistent level.  
you can see more info here :

> **[Level Streaming](https://docs.unrealengine.com/4.27/en-US/BuildingWorlds/LevelStreaming/)**
>
> Asynchronously loading and unloading levels during play to decrease memory usage and create seamless worlds.

in your case, here is what you should do :

1. place your actor in your level, and set it s transform as you want it.
2. create a level (name it myprefabactor (or whatever 🙂 )
3. in your levels, open the level tab (window / levels)
4. drag and drop myprefabactor in the level window. (it should appear as a sublevel now). double click it to select it (name will become blue)
5. in the world outliner, selecte the actor you want to do as “prefab”, right click : LEvel / move selection to current level.
6. back in the level tab, check that your level is not set as initiany loaded or visible (in the level detail sub panel. and hide your level.

now when you want to spawn it, you just have to calle the level :

![313787-spawnlevel.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/1/d/01d7c638a8c744775744bd53be93bc1989b8a6bf.png)

---

<div class="post-metadata">

**Author:** ![PixelOmen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PixelOmen](https://forums.unrealengine.com/u/PixelOmen)\
**Post date:** [September 16, 2020, 12:21pm UTC](https://forums.unrealengine.com/t/unitys-prefab-in-unreal-engine-4/471368/7 "2020-09-16T12:21:12Z")

</div>

I must be misunderstanding something, it sounds like you want to achieve the same result as hard coding the transform but for some reason you don’t want to hard code it. What am I missing?

---

<div class="post-metadata">

**Author:** ![Gurulis99](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Gurulis99](https://forums.unrealengine.com/u/Gurulis99)\
**Post date:** [September 18, 2020, 8:19am UTC](https://forums.unrealengine.com/t/unitys-prefab-in-unreal-engine-4/471368/8 "2020-09-18T08:19:41Z")

</div>

oh noo… oh noo… Something more easier and light to use?

---

<div class="post-metadata">

**Author:** ![expose](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@expose](https://forums.unrealengine.com/u/expose)\
**Post date:** [September 18, 2020, 8:29am UTC](https://forums.unrealengine.com/t/unitys-prefab-in-unreal-engine-4/471368/9 "2020-09-18T08:29:36Z")

</div>

you can do something a bit dumb,  
in your event begin play, you store the transform in a variable, then teleport your actor far away from the level (like and offset of -10000 in transform) and instead of spawning it, you do a function that gives him back his transform
