- Explains the Custom Primitive Data feature added in 4.23
- Demonstrates Custom Primitive Data materials
- Compares draw call impact to dynamic material instances.
Thanks - very useful. Have you determined how to make this work when dealing with an actor that has more than one material element on it. As far as I can see the CPD parameter applies at the actor level not at the mesh element level.
Indeed very useful, wish I’d known about it sooner. Thank you for putting together the video as well
SetCustomPrimitiveData actually applies to the primitives, (UPrimitiveComponent) not actors (AActor).
If you have a primitive with more than one material, they should all be able to access the same set of custom primitive data (though I have not tried this myself).
If you need custom per-material data, you should use dynamic material instances instead.