# I want to make a tiled component that I can animate.

**URL:** <https://forums.unrealengine.com/t/i-want-to-make-a-tiled-component-that-i-can-animate/1182898>\
**Category:** Getting Started & Setup\
**Tags:** unreal-engine\
**Created:** [May 30, 2023, 12:30am UTC](https://forums.unrealengine.com/t/i-want-to-make-a-tiled-component-that-i-can-animate/1182898 "2023-05-30T00:30:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![euoss](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@euoss](https://forums.unrealengine.com/u/euoss)\
**Post date:** [May 30, 2023, 12:30am UTC](https://forums.unrealengine.com/t/i-want-to-make-a-tiled-component-that-i-can-animate/1182898/1 "2023-05-30T00:30:04Z")

</div>

For my game I want to make a level floor component that is a set of tiles. I want to be able to change those tiles appearances individually.

I.e. one level will start on a checkboard (so, square tiles, black and white). Then I want to make different animations (i.e. make materials flash on some tiles).

What is the best way I can do this? I am currently hopping between C++ and Blueprints so language does not matter.

I have an actor with Instanced Static Mesh - but I do not see how to set materials on individual tiles. Is it supposed to be a single material for all the tiles?

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [May 30, 2023, 7:23am UTC](https://forums.unrealengine.com/t/i-want-to-make-a-tiled-component-that-i-can-animate/1182898/2 "2023-05-30T07:23:39Z")

</div>

You can do with BP, no problemo, but if they all have different materials, there’s no point in instancing them.

---

<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:** [May 30, 2023, 9:50am UTC](https://forums.unrealengine.com/t/i-want-to-make-a-tiled-component-that-i-can-animate/1182898/3 "2023-05-30T09:50:22Z")

</div>

> [@euoss](#):
>
> I have an actor with Instanced Static Mesh - but I do not see how to set materials on individual tiles. Is it supposed to be a single material for all the tiles?

Generally speaking 1 ISMc = 1 material but:

- you could leverage [Custom Primitive Data](https://docs.unrealengine.com/4.27/en-US/RenderingAndGraphics/Materials/CustomPrimitiveData/) to make each instance of the ISM look different. [Example](https://forums.unrealengine.com/t/hierarchical-instanced-static-mesh-does-not-support-custom-data-correctly/468750/4). The technique is very efficient but it has its limits. If the materials are fully procedural, the possibilities are almost limitless. But you cannot really dynamically feed instances texture samples, only raw float data.

- you could have many ISMc - as many as there are materials. To “_change the material_”, you’d remove a mesh instance from one ISMc and add it to another ISMc. The material change would be automatic. You can absolutely combine it with the Custom Primitive Data. Think of it as of a Tile Manager actor that creates a bunch of (dynamic) materials, and handles many ISMc.

- and finally, have a single ISMc. When an instance tile is interacted with, you remove that instance and replace it with a static mesh.

---

<div class="post-metadata">

**Author:** ![euoss](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@euoss](https://forums.unrealengine.com/u/euoss)\
**Post date:** [May 30, 2023, 7:00pm UTC](https://forums.unrealengine.com/t/i-want-to-make-a-tiled-component-that-i-can-animate/1182898/4 "2023-05-30T19:00:48Z")

</div>

Thank you. Will try multiple instances static meshes first.
