# Instanced Statc Mesh set Custom Data array at once from blueprint

**URL:** <https://forums.unrealengine.com/t/instanced-statc-mesh-set-custom-data-array-at-once-from-blueprint/2836817>\
**Category:** Blueprint\
**Tags:** unreal-engine, question\
**Created:** [October 3, 2026, 6:13am UTC](https://forums.unrealengine.com/t/instanced-statc-mesh-set-custom-data-array-at-once-from-blueprint/2836817 "2026-10-03T06:13:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ViaCognita](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/viacognita/32/906601_2.png) [@ViaCognita](https://forums.unrealengine.com/u/ViaCognita)\
**Post date:** [October 3, 2026, 6:13am UTC](https://forums.unrealengine.com/t/instanced-statc-mesh-set-custom-data-array-at-once-from-blueprint/2836817/1 "2026-10-03T06:13:46Z")

</div>

Hi!

I have created a Blueprint Actor with an Instanced Static Mesh. My problem is that I want to set the Custom Data array at once from Blueprint, but I can’t because the only way to set it is using the `Set Custom Data Value`:

 ![imagen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/2/9/f29108900491dc534e2d022c45f5229f3d0b05c9.jpeg)

Do I need to set it using a for loop?

Is it possible to set it all at once?

Thanks!

---

<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 3, 2026, 6:33am UTC](https://forums.unrealengine.com/t/instanced-statc-mesh-set-custom-data-array-at-once-from-blueprint/2836817/2 "2026-10-03T06:33:51Z")

</div>

Afaik, you need to set them one by one.

---

<div class="post-metadata">

**Author:** ![ViaCognita](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/viacognita/32/906601_2.png) [@ViaCognita](https://forums.unrealengine.com/u/ViaCognita)\
**Post date:** [October 3, 2026, 8:03am UTC](https://forums.unrealengine.com/t/instanced-statc-mesh-set-custom-data-array-at-once-from-blueprint/2836817/3 "2026-10-03T08:03:29Z")

</div>

> [@Everynone](#):
>
> Afaik, you need to set them one by one.

I don’t know if I’m setting the right value for the `Custom Data Index`. There are three custom data for each instance.

 ![imagen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/a/8/4a858aa1d88521a15e3a8c3f283018d525f4f1b5.jpeg)

By the way, I’m trying to set the Custom Data array manually, and always crashes when I try to set the value for an index greater than 2.

 ![imagen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/6/6/16660cd8e9e4c7833eb1d8abb78c064983678dad.png)

The error I get is:

`Assertion failed: Index < MaxIndex [File:D:\build++UE5\Sync\Engine\Source\Runtime\Engine\Public\InstancedStaticMesh\InstanceAttributeTracker.h] [Line: 254]`

Making the editor crashes.

---

<div class="post-metadata">

**Author:** ![ViaCognita](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/viacognita/32/906601_2.png) [@ViaCognita](https://forums.unrealengine.com/u/ViaCognita)\
**Post date:** [October 3, 2026, 5:15pm UTC](https://forums.unrealengine.com/t/instanced-statc-mesh-set-custom-data-array-at-once-from-blueprint/2836817/4 "2026-10-03T17:15:50Z")

</div>

Finally, it works perfectly:

 ![imagen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/5/2/15260a03690dbaca2d784a76db9ce0682cf284e4.png)

**Instance Index** : this is the index representing the instance whose colour we are going to change.

**Custom Data Index** : this indicates the ‘Per Instance Custom Data’ node to which we are going to assign the value.

**Custom Data Value** : the value taken from the vector that is to be assigned.
