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?
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
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?)
Also, what is the Overrides pin for? I don’t understand how to use it.
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:
- Set Mesh Selector Type to
PCGMeshSelectorByAttribute
. - 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.