# Using Static Mesh Instance for Spline Mesh Component

**URL:** <https://forums.unrealengine.com/t/using-static-mesh-instance-for-spline-mesh-component/917344>\
**Category:** Asset Creation\
**Tags:** unreal-engine, Blueprint, question\
**Created:** [April 13, 2023, 11:41am UTC](https://forums.unrealengine.com/t/using-static-mesh-instance-for-spline-mesh-component/917344 "2023-04-13T11:41:44Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Neuffexx](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/neuffexx/32/683563_2.png) [@Neuffexx](https://forums.unrealengine.com/u/Neuffexx)\
**Post date:** [April 13, 2023, 11:41am UTC](https://forums.unrealengine.com/t/using-static-mesh-instance-for-spline-mesh-component/917344/1 "2023-04-13T11:41:44Z")

</div>

Simply said, I want to add a mesh component to a spline, but have this mesh be determined by whoever is using the blueprint the level editor, rather than have to go into the blueprint construction script- find the node- replace it there and recompile the blueprint.

Is that possible?  
Currently I am stuck at actually providing it the input to the node since it wants an actor instead of the mesh?

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/5/9/1595fdba26413224641de5385f4960989d916c7c.png)

---

<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:** [April 13, 2023, 11:57am UTC](https://forums.unrealengine.com/t/using-static-mesh-instance-for-spline-mesh-component/917344/2 "2023-04-13T11:57:31Z")

</div>

Like this?

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/b/7/9b76d9c6f42f7cca8d7e36bd0760094319762040.png)

or

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/2/4/624937e5254f3163af478bb107f714b8914d6fb1.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/9/9/29909d93ea362132c337f3471be22b942f07af23.png)

![splm](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/6/0/5602b2957161be44990eece7377024a5e32ccefa.gif)

---

<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:** [April 13, 2023, 12:08pm UTC](https://forums.unrealengine.com/t/using-static-mesh-instance-for-spline-mesh-component/917344/3 "2023-04-13T12:08:17Z")

</div>

You can do it with a Static Mesh (asset), as above. But not with an `Instanced Static Mesh Component`.

---

<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:** [April 13, 2023, 12:12pm UTC](https://forums.unrealengine.com/t/using-static-mesh-instance-for-spline-mesh-component/917344/4 "2023-04-13T12:12:41Z")

</div>

I think by ‘mesh instance’, the OP means ‘a mesh’ ( as you probably guessed ) ☺

---

<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:** [April 13, 2023, 12:13pm UTC](https://forums.unrealengine.com/t/using-static-mesh-instance-for-spline-mesh-component/917344/5 "2023-04-13T12:13:38Z")

</div>

I meant this, OP is feeding a component into a component:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/6/0/b60e095444934b7a386d6c12872baac09adb1e8f.png)

If we’re using ISMs, perhaps that’s what was needed:

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/a/2/5a2b9b5faa51c2b3fdec357768a2c1a72c7d7c41.png)

---

<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:** [April 13, 2023, 12:17pm UTC](https://forums.unrealengine.com/t/using-static-mesh-instance-for-spline-mesh-component/917344/6 "2023-04-13T12:17:46Z")

</div>

Ah yes, see what you mean…

---

<div class="post-metadata">

**Author:** ![Neuffexx](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/neuffexx/32/683563_2.png) [@Neuffexx](https://forums.unrealengine.com/u/Neuffexx)\
**Post date:** [April 13, 2023, 12:41pm UTC](https://forums.unrealengine.com/t/using-static-mesh-instance-for-spline-mesh-component/917344/7 "2023-04-13T12:41:43Z")

</div>

Got a call from work so I couldn’t answer any sooner, but yes that Is what I was trying to do, because from my limited understanding I assumed that using instances would be more efficient?  
Since its essentially creating a new mesh along the spline. Unless it boils down to the same thing?

---

<div class="post-metadata">

**Author:** ![Neuffexx](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/neuffexx/32/683563_2.png) [@Neuffexx](https://forums.unrealengine.com/u/Neuffexx)\
**Post date:** [April 13, 2023, 12:49pm UTC](https://forums.unrealengine.com/t/using-static-mesh-instance-for-spline-mesh-component/917344/8 "2023-04-13T12:49:06Z")

</div>

Essentially, instead of setting the Mesh inside the node details, I want to provide it through a parameter.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/f/5/6f5bd5def3b0fa4d4a7c617e0f67756de4e50ccb.png)  
But that being said, I don’t think I can input a static mesh into the node.

But I think what @ClockworkOcean posted above may be what I was looking for by giving the target to a set static mesh node?

---

<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:** [April 13, 2023, 12:56pm UTC](https://forums.unrealengine.com/t/using-static-mesh-instance-for-spline-mesh-component/917344/9 "2023-04-13T12:56:37Z")

</div>

Yes, you set it in the level

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/a/0/2a0b449a747d18569082b005e605e2d63bd10d74.jpeg)

because you make the variable visible

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/f/8/8f866196ff4d92dea888b647236c91c3d670cc5f.png)

---

<div class="post-metadata">

**Author:** ![Neuffexx](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/neuffexx/32/683563_2.png) [@Neuffexx](https://forums.unrealengine.com/u/Neuffexx)\
**Post date:** [April 13, 2023, 12:57pm UTC](https://forums.unrealengine.com/t/using-static-mesh-instance-for-spline-mesh-component/917344/10 "2023-04-13T12:57:25Z")

</div>

Yes that was indeed what I needed to do, good to know I can do that, I was too focused on how to provide the input directly to the Spline Mesh Component node.

---

<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:** [April 13, 2023, 1:02pm UTC](https://forums.unrealengine.com/t/using-static-mesh-instance-for-spline-mesh-component/917344/11 "2023-04-13T13:02:36Z")

</div>

> [@Neuffexx](#):
>
> Since its essentially creating a new mesh along the spline. Unless it boils down to the same thing?

Note the word component - it’s a like a module we add to an actor:

- a Static Mesh **Component** - displays a `Static Mesh`
- an Instanced Static Mesh **Component** - uses a `Static Mesh` to create many highly performing instances - think of them clones
- a Spline Mesh **Component** also needs a `Static Mesh` and applies tangents and whatnots to deform it

Static Mesh is the asset you import into the engine for other components to use.

* * *

In short: `Components` use `Static Meshes` to do their special things. A component cannot use another component for that.

If an actor is a chest of drawers, components are drawers and static meshes are the contents. You can’t put a drawer into another drawer. May be a stupid example but that’s the first thing that came to mind 😇

---

<div class="post-metadata">

**Author:** ![Neuffexx](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/neuffexx/32/683563_2.png) [@Neuffexx](https://forums.unrealengine.com/u/Neuffexx)\
**Post date:** [April 13, 2023, 1:05pm UTC](https://forums.unrealengine.com/t/using-static-mesh-instance-for-spline-mesh-component/917344/12 "2023-04-13T13:05:40Z")

</div>

Got it does make sense, no worries about the example 👍
