Is there a limit to the Per Instance Custom Data Value node in the materials?

I found out that after like 16 Per Instance Custom Data, that material starts giving all kinds of errors.
You can see in the following video, that it doesn’t matter what node it is, if it is above a certain number, it will give errors:

So is there a specific limit? Is there a solution for this?
Why is there a limit?

It should be 32. And was supposed to be configurable. 16 you say, hm - that’d be the limit for now.

1 Like

thanks a lot for the insight. I cant find anything anywhere about this.
And im stuck with this problem.
You said its configurable? Where can this be configurable?

In project preferences, but was never added. At least I can’t find it.

Scroll down to Additional Notes at the very bottom:

https://docs.unrealengine.com/4.27/en-US/RenderingAndGraphics/Materials/CustomPrimitiveData/

Never needed that many :|, it’s probably overlooked / niche. Consider dropping a feature request:

https://forums.unrealengine.com/tags/c/general/feedback-requests/50/unreal-engine

Can’t see anything on the Roadmap either:

https://portal.productboard.com/epicgames/1-unreal-engine-public-roadmap/tabs/88-unreal-engine-5-3-in-progress

1 Like

Well i just counted it. The limit is 18 nodes. Anything above it no matter what you do will start giving errors.
I wish this could be edited.
But maybe its not supposed to.
Maybe 18 Custom data floats is a lot and bad for performance.
Though i have 178 instructions at the moment for a super awesome material.
Im considering splitting my material in 2. Ill have 2 materials with less functionalities each.

1 Like