In this tutorial, I introduce another way to pass data to Materials: via a custom SceneUniformBuffer.
The tutorial shows a minimal case: passing a single float value. And a more complex case: passing a DataTable.
The second case shows the particular value of this approach: the ability to index information like an array.
This is something the Material Parameter Collection cannot do.
https://dev.epicgames.com/community/learning/tutorials/r6bD/unreal-engine-how-to-pass-data-to-materials-by-customizing-the-sceneuniformbuffer
1 Like