# How to set up the material for a single object in ISM

**URL:** <https://forums.unrealengine.com/t/how-to-set-up-the-material-for-a-single-object-in-ism/2069490>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, question\
**Created:** [October 15, 2024, 1:25pm UTC](https://forums.unrealengine.com/t/how-to-set-up-the-material-for-a-single-object-in-ism/2069490 "2024-10-15T13:25:54Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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:** [October 16, 2024, 6:53am UTC](https://forums.unrealengine.com/t/how-to-set-up-the-material-for-a-single-object-in-ism/2069490/4 "2024-10-16T06:53:05Z")

</div>

Just to clarify, these are 3 separate methods.

* * *

Colour does not need to equal a new material. If it’s about changing **just** the colour, try the `Per Instance Custom Dat`a approach - definitely the most fun to learn out of the abovementioned bunch:

> **[Storing Custom Data in Unreal Engine Materials Per-Primitive | Unreal Engine...](https://dev.epicgames.com/documentation/en-us/unreal-engine/storing-custom-data-in-unreal-engine-materials-per-primitive)**
>
> An overview of the Unreal Engine Custom Primitive Data workflow for storing custom data per primitive that's accessible through Blueprint.

In short: imagine you did not need to store colour information in a material, but you could do it in each sphere instance instead. Here’s an example:

> [@How to add a hit count (health points) to individual instances?](https://forums.unrealengine.com/t/how-to-add-a-hit-count-health-points-to-individual-instances/227176/2):
>
> The name of the game is Custom Primitive Data (check docs at the bottom). The material for a brick: each instance stores a float which is used to Lerp between 2 colours (to visualise hits remaining) this can (and probably should) get prettified Making a brick wall: create a bunch of instances and store their data in an int | int Map instead of an integer, you could have a struct and hold all kind of data here; perhaps this brick is worth some coins, or explodes when destroyed and …

---

_[View the full topic](https://forums.unrealengine.com/t/how-to-set-up-the-material-for-a-single-object-in-ism/2069490)._
