# BSP Dynamic change Surface Materials and Surface Properties

**URL:** <https://forums.unrealengine.com/t/bsp-dynamic-change-surface-materials-and-surface-properties/441005>\
**Category:** Asset Creation\
**Tags:** bsp-brush, unreal-engine, question\
**Created:** [January 10, 2019, 4:17am UTC](https://forums.unrealengine.com/t/bsp-dynamic-change-surface-materials-and-surface-properties/441005 "2019-01-10T04:17:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_e63c66bf](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e63c66bf](https://forums.unrealengine.com/u/anonymous_user_e63c66bf)\
**Post date:** [January 10, 2019, 4:17am UTC](https://forums.unrealengine.com/t/bsp-dynamic-change-surface-materials-and-surface-properties/441005/1 "2019-01-10T04:17:41Z")

</div>

Hi All

I have a question for BSP material,

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

 ![264812-2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/4/d/64d469e342c5b92d5ce5f56641c73c4dfafd4a23.png)

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

![264811-擷取.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/4/9/749494969324f0fb97c07ba903ebd6122c39be91.png)

How can I do that~?

Thanks!

---

<div class="post-metadata">

**Author:** ![tangfuling](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@tangfuling](https://forums.unrealengine.com/u/tangfuling)\
**Post date:** [September 5, 2020, 1:28pm UTC](https://forums.unrealengine.com/t/bsp-dynamic-change-surface-materials-and-surface-properties/441005/2 "2020-09-05T13:28:22Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![tangfuling](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@tangfuling](https://forums.unrealengine.com/u/tangfuling)\
**Post date:** [September 5, 2020, 1:48pm UTC](https://forums.unrealengine.com/t/bsp-dynamic-change-surface-materials-and-surface-properties/441005/3 "2020-09-05T13:48:28Z")

</div>

![312513-tmp.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/9/9/9992032a3c2942f639bf01a836152bb35375aab3.png)

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。
