# PCG - Static Mesh Spawner override parameters

**URL:** <https://forums.unrealengine.com/t/pcg-static-mesh-spawner-override-parameters/2153679>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, editor, question\
**Created:** [November 27, 2024, 3:16am UTC](https://forums.unrealengine.com/t/pcg-static-mesh-spawner-override-parameters/2153679 "2024-11-27T03:16:47Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jebediahh](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jebediahh](https://forums.unrealengine.com/u/Jebediahh)\
**Post date:** [November 27, 2024, 3:16am UTC](https://forums.unrealengine.com/t/pcg-static-mesh-spawner-override-parameters/2153679/1 "2024-11-27T03:16:47Z")

</div>

On the static mesh spawner in a PCG graph, you can set the start and end cull distance in the “template Descriptor” section. Does anybody know how to override this value (or set any value) in the static mesh spawner with parameters? There are very few input pins on this node. Is there some way to specify this parameter through the “Overrides” pin maybe?

---

<div class="post-metadata">

**Author:** ![Uotsab](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Uotsab](https://forums.unrealengine.com/u/Uotsab)\
**Post date:** [March 16, 2025, 6:19pm UTC](https://forums.unrealengine.com/t/pcg-static-mesh-spawner-override-parameters/2153679/2 "2025-03-16T18:19:14Z")

</div>

Oh no, it’s 2025 and no answer to this yet. I am struggling with this too. So if you know, than reply us a solution.  
Thanks for reading by 🙂

---

<div class="post-metadata">

**Author:** ![PonyoChiChi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PonyoChiChi](https://forums.unrealengine.com/u/PonyoChiChi)\
**Post date:** [May 16, 2025, 11:59pm UTC](https://forums.unrealengine.com/t/pcg-static-mesh-spawner-override-parameters/2153679/3 "2025-05-16T23:59:15Z")

</div>

This tutorial helped me a ton:

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/a/7/ea74906b001fabd011060471b45280fc17164b37.jpeg "Here's How to Adjust Your Building Based on the Asset Size | UE 5.4 P2") ](https://www.youtube.com/watch?v=xVMz-LW1SJw)

And don’t forget about this checkbox:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/7/c/77cb3302a774e60e30f4c06b15bf1e678db9cb39.png)

---

<div class="post-metadata">

**Author:** ![rflab](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@rflab](https://forums.unrealengine.com/u/rflab)\
**Post date:** [May 27, 2025, 9:37am UTC](https://forums.unrealengine.com/t/pcg-static-mesh-spawner-override-parameters/2153679/4 "2025-05-27T09:37:50Z")

</div>

Does anyone know more about this?

The YouTube is partially answered, but I don’t think it is a complete answer. Some parameters may be able to be embedded in a static mesh, but some are not, such as Custom Stencil Value and Cast Shadow.

Is it necessary to have a dedicated StaticMeshSpawner for small parameter changes?  
（Perhaps the settings must match for optimal mesh rendering and PCG is not supposed to diverge parameters?）

 ![aa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/0/0/a0067861048d808b64c4f6ab8159e0c9def0dcdd.jpeg)

Also, what is the Overrides pin for? I don’t understand how to use it.

---

<div class="post-metadata">

**Author:** ![PonyoChiChi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PonyoChiChi](https://forums.unrealengine.com/u/PonyoChiChi)\
**Post date:** [May 28, 2025, 10:34pm UTC](https://forums.unrealengine.com/t/pcg-static-mesh-spawner-override-parameters/2153679/5 "2025-05-28T22:34:11Z")

</div>

You can add attributes to your points from the structure and use their values to override Descriptor properties (such as Custom Stencil Value or Cast Shadow). To do this:

In the **StaticMeshSpawner** node:

1. Set **Mesh Selector Type** to `PCGMeshSelectorByAttribute`.
2. Set **Attribute Name** to your custom attribute (e.g., `Mesh`).

Once `PCGMeshSelectorByAttribute` is selected, you can override Descriptor properties via the **Static Mesh Component Property Overrides** array. Add an element and “link by Internal Name“ your point attribute to the Descriptor property using its **Internal Name** (you can get it by right-clicking on the property).  
No need to dig deep — the **Mesh Selector** category includes the **Template Descriptor** , where you can copy Internal Names directly.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/e/f/7ef0c746cf1ceb9a3520776a729b126f15390bf4.png)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/5/3/35332b130ab1262a876c5d930126fe341e99894d.png)

---

<div class="post-metadata">

**Author:** ![rflab](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@rflab](https://forums.unrealengine.com/u/rflab)\
**Post date:** [May 29, 2025, 3:03pm UTC](https://forums.unrealengine.com/t/pcg-static-mesh-spawner-override-parameters/2153679/6 "2025-05-29T15:03:49Z")

</div>

It works!  
Thank you so much!  
The screenshots were also very helpful!  
I really appreciate your help!

---

<div class="post-metadata">

**Author:** ![Supermatta321](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Supermatta321](https://forums.unrealengine.com/u/Supermatta321)\
**Post date:** [March 11, 2026, 9:20am UTC](https://forums.unrealengine.com/t/pcg-static-mesh-spawner-override-parameters/2153679/7 "2026-03-11T09:20:53Z")

</div>

This works very well when spawning on the cpu, but any idea why it doesnt work on the gpu?

---

<div class="post-metadata">

**Author:** ![LimasseFive](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/limassefive/32/910458_2.png) [@LimasseFive](https://forums.unrealengine.com/u/LimasseFive)\
**Post date:** [July 16, 2026, 8:37am UTC](https://forums.unrealengine.com/t/pcg-static-mesh-spawner-override-parameters/2153679/8 "2026-07-16T08:37:51Z")

</div>

Is that fixed on 5.8 ?  
I’m using 5.7 and it indeed doesn’t work when set as GPU node…

---

<div class="post-metadata">

**Author:** ![Supermatta321](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Supermatta321](https://forums.unrealengine.com/u/Supermatta321)\
**Post date:** [August 6, 2026, 11:14am UTC](https://forums.unrealengine.com/t/pcg-static-mesh-spawner-override-parameters/2153679/9 "2026-08-06T11:14:44Z")

</div>

Dont think so. Guessing the parameters arent transferred to the gpu from the cpu
