# How to assign Primitive in editor

**URL:** <https://forums.unrealengine.com/t/how-to-assign-primitive-in-editor/1857098>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, editor, question, Blueprint\
**Created:** [May 15, 2024, 11:38am UTC](https://forums.unrealengine.com/t/how-to-assign-primitive-in-editor/1857098 "2024-05-15T11:38:26Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Let.Shadow.Play](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Let.Shadow.Play](https://forums.unrealengine.com/u/Let.Shadow.Play)\
**Post date:** [May 15, 2024, 11:38am UTC](https://forums.unrealengine.com/t/how-to-assign-primitive-in-editor/1857098/1 "2024-05-15T11:38:26Z")

</div>

I made an actor with certain components, i want to also add an optional primitive (in this case a plane) to created object inside the editor. In unity i could just plug the plane into the variable and done.  
Is there no feature to just set objects by drag the reference into the variable? Or is there something different wrong? Its a little hard to explain so see the images:  
I want to assign “Plane 1” (which is not part of the blueprint by default to “render mesh”

 ![Screenshot 2024-05-15 133039](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/3/b/03beefe252a51047953b04aaacba89d50de222dc.png)

The same item but inside the blueprint editor.

 ![Screenshot 2024-05-15 133114](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/f/f/6ffe31991327b209e33a128b7a28c7c98ce8cd7d.png)

It might be the case that such a logic does not exist in unreal, but what is the alternative?

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [May 15, 2024, 12:05pm UTC](https://forums.unrealengine.com/t/how-to-assign-primitive-in-editor/1857098/2 "2024-05-15T12:05:31Z")

</div>

If you want it to be a mesh, then it’s easier to make the type of variable ‘static mesh component’.

A primitive component reference might be used to refer to a general component when you don’t know what the type is going to be.

---

<div class="post-metadata">

**Author:** ![Let.Shadow.Play](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Let.Shadow.Play](https://forums.unrealengine.com/u/Let.Shadow.Play)\
**Post date:** [May 15, 2024, 12:25pm UTC](https://forums.unrealengine.com/t/how-to-assign-primitive-in-editor/1857098/3 "2024-05-15T12:25:45Z")

</div>

Same problem, how to assign it from editor (not blueprint editor) or how can i just edit the instance instead of the parent/origin object?

If i click on the finder in the first image i only get an empty list.

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [May 15, 2024, 12:42pm UTC](https://forums.unrealengine.com/t/how-to-assign-primitive-in-editor/1857098/4 "2024-05-15T12:42:52Z")

</div>

Beg your pardon

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/1/a/31ab2f05ab8db4abd609a9a48df8f6b80e0474c2.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/b/8/ab806d81128c09e7169d6e860c4ad4bffefea4b4.png)

---

<div class="post-metadata">

**Author:** ![Let.Shadow.Play](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Let.Shadow.Play](https://forums.unrealengine.com/u/Let.Shadow.Play)\
**Post date:** [May 15, 2024, 4:46pm UTC](https://forums.unrealengine.com/t/how-to-assign-primitive-in-editor/1857098/5 "2024-05-15T16:46:05Z")

</div>

Okay that might work, but when/where does the mesh gets instantiated, also i cannot place/position that mesh correctly in scene right?

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [May 15, 2024, 4:59pm UTC](https://forums.unrealengine.com/t/how-to-assign-primitive-in-editor/1857098/6 "2024-05-15T16:59:53Z")

</div>

When you place the blueprint in the scene, you can set the mesh. It will point to a static mesh definition in the content browser.

If you want the mesh to be part of the blueprint, but also be able to set it, then you need to add a mesh component, and use the variable to set the mesh ( of this component ) in the construction script.

If you want the blueprint to point at an actual mesh in the scene, then you need the variable to be of type ‘static mesh actor’.

---

<div class="post-metadata">

**Author:** ![Let.Shadow.Play](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Let.Shadow.Play](https://forums.unrealengine.com/u/Let.Shadow.Play)\
**Post date:** [May 15, 2024, 5:16pm UTC](https://forums.unrealengine.com/t/how-to-assign-primitive-in-editor/1857098/7 "2024-05-15T17:16:55Z")

</div>

Okay i realy just needed to use actor instead of object. Thanks

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [June 14, 2024, 5:17pm UTC](https://forums.unrealengine.com/t/how-to-assign-primitive-in-editor/1857098/8 "2024-06-14T17:17:11Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
