I think you can use Custom Primitive Data
Storing Custom Data in Unreal Engine Materials Per-Primitive | Unreal Engine 5.3 Documentation
I think you can use Custom Primitive Data
Storing Custom Data in Unreal Engine Materials Per-Primitive | Unreal Engine 5.3 Documentation