Custom Primitive Data
Learn how you can use Custom Primitive Data to easily modify Scalar and Vector material parameters without needing Dynamic Material Instances.

Learn how you can use Custom Primitive Data to easily modify Scalar and Vector material parameters without needing Dynamic Material Instances.

Custom Primitive Data is a helpful feature within Unreal Engine that allows you to easily modify Scalar and Vector parameters within Materials without the need to setup Material Instances or Dynamic Material Instances during runtime.
This is primarily due to the data being stored on the Primitive Object itself, such as a Static or Skeletal Mesh Component, instead of the material. In addition, this method increases performance by reducing the number of draw calls used for duplicate geometry within your scene.


Apply the material to a Primitive Object that can be assigned a material (e.g., Static or Skeletal Mesh Components)
Modify the "Custom Primitive Data" by the Primitive Component Details Panel or via the "Set Custom Primitive Data" functions in C++, Blueprint, or Python



Apply the material to a Static Mesh object that will be instanced (e.g., Hierarchical Instance Static Mesh, Instanced Static Mesh)
Modify the "Custom data" option via the Instance Component Details Panel or via the "Set Custom Data Value" functions in C++, Blueprint, or Python
