# Per Instance Custom Data - data not static

**URL:** <https://forums.unrealengine.com/t/per-instance-custom-data-data-not-static/465957>\
**Category:** Rendering\
**Tags:** Hierarchical-Instanced-Static-Mesh, hism, unreal-engine, question\
**Created:** [May 29, 2020, 8:26am UTC](https://forums.unrealengine.com/t/per-instance-custom-data-data-not-static/465957 "2020-05-29T08:26:51Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Konata\_Yuki](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Konata\_Yuki](https://forums.unrealengine.com/u/Konata_Yuki)\
**Post date:** [May 29, 2020, 8:26am UTC](https://forums.unrealengine.com/t/per-instance-custom-data-data-not-static/465957/1 "2020-05-29T08:26:51Z")

</div>

Hello Epic,

The Node Per “Instance Custom Data” value changes when the camera view is changed.  
How can the problem be solved?

With few instances it seems to work (\<100 instance)

A lot of instances don’t work (+1000 instance)

How can the problem be solved?

See pictures and video:  
[**YouTube Video**][1]

 ![303109-material1.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/e/9/8e955d7db6d2ed0f6a0c5f53996b1c2c2d32a860.jpeg)

 ![303110-actor1.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/5/3/75369d9d0fdd63271135fb02e209de7ab221f44d.jpeg)

---

<div class="post-metadata">

**Author:** ![Ali\_TeamRevived](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ali_teamrevived/32/623450_2.png) [@Ali\_TeamRevived](https://forums.unrealengine.com/u/Ali_TeamRevived)\
**Post date:** [May 29, 2020, 9:33am UTC](https://forums.unrealengine.com/t/per-instance-custom-data-data-not-static/465957/2 "2020-05-29T09:33:17Z")

</div>

This is exactly my issue too:

> **[PerInstanceCustomData not working in HISM](https://forums.unrealengine.com/questions/961597/view.html)**
>
> There’s a new feature in UE 4.25 which lets us send an array of custom data per instance to the material. However, it doesn’t work reliably in hierarchical instanced static mesh (it works perfectly in ISM). Does anybody know what’s the problem? Or is...

[https://forums.unrealengine.com/development-discussion/rendering/1765990-perinstancecustomdata-not-working-in-hism](https://forums.unrealengine.com/development-discussion/rendering/1765990-perinstancecustomdata-not-working-in-hism)

If you have a mesh with more vertices, the number of stable instances get way below 100. This PerInstanceCustomData works perfectly with ISM though. You can try that.

I have reported this as a bug, but it didn’t get submitted. So, I’m guessing it’s either in development or never gonna happen!

---

<div class="post-metadata">

**Author:** ![Konata\_Yuki](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Konata\_Yuki](https://forums.unrealengine.com/u/Konata_Yuki)\
**Post date:** [June 1, 2020, 5:32pm UTC](https://forums.unrealengine.com/t/per-instance-custom-data-data-not-static/465957/3 "2020-06-01T17:32:59Z")

</div>

Hello,

I could see the bug in two instances already.  
I hope epic corrects the bug.

---

<div class="post-metadata">

**Author:** ![Tefel](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tefel/32/1194573_2.png) [@Tefel](https://forums.unrealengine.com/u/Tefel)\
**Post date:** [June 26, 2020, 6:22am UTC](https://forums.unrealengine.com/t/per-instance-custom-data-data-not-static/465957/4 "2020-06-26T06:22:56Z")

</div>

Same problem here, I already reported it. Seems Per Instace Custom data is broken in 4.25

---

<div class="post-metadata">

**Author:** ![chalonverse](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@chalonverse](https://forums.unrealengine.com/u/chalonverse)\
**Post date:** [July 14, 2020, 5:10am UTC](https://forums.unrealengine.com/t/per-instance-custom-data-data-not-static/465957/5 "2020-07-14T05:10:09Z")

</div>

I was looking into this bug today, and it turns out that Epic committed a fix for it ~3 weeks ago on GitHub: [https://github.com/EpicGames/UnrealEngine/commit/a2e9daf7280cbd7f395e0e03c0c430fabb168d40](https://github.com/EpicGames/UnrealEngine/commit/a2e9daf7280cbd7f395e0e03c0c430fabb168d40)

I pulled the change locally and it fixes the bug for me.

---

<div class="post-metadata">

**Author:** ![Konata\_Yuki](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Konata\_Yuki](https://forums.unrealengine.com/u/Konata_Yuki)\
**Post date:** [July 14, 2020, 7:34pm UTC](https://forums.unrealengine.com/t/per-instance-custom-data-data-not-static/465957/6 "2020-07-14T19:34:51Z")

</div>

Hello chalonverse,

thanks for the information.  
I tried it too. It works. 🙂
