BSP Dynamic change Surface Materials and Surface Properties

Hi All

I have a question for BSP material,

I have two box brush, the one is Subtractive the other one like picture

I want Dynamic get or set Box Brush every Surface material on level blueprint or C++

264811-擷取.png

How can I do that~?

Thanks!

I have the same question and I hope someone will answer it

I guess change model->MaterialIndexBuffers will work,but i don’t know how to create a MaterialIndexBuffers。
I tried to create a MaterialIndexBuffers with the code above,but “new FRawIndexBuffer16or32” compile error。
Hope someone can help。