Is there any difference in the way we apply dynamic textures to a Static Mesh and a (Box) Brush?

Hello,

Is there any difference in the way we apply dynamic textures to a Static Mesh and a (Box) Brush?

I was trying to change color/texture of my material dynamically from blueprint. I was successful changing color parameter of one of material applied to one of the actor but not to the other actor which I need to change texture. I thought there could be difference in how we do change the color and texture but what I noticed is that I am getting null reference when I try to “Create Dynamic Material Instance” for the problem actor.

As you can see in the image. I am trying to change material of Room02 and Box Brush where as Room02 is returning the material reference and Box Brush is returning null. What would be the problem? What wrong I am doing here? Is there any differnt methods to access materials for a StaticMeshComponent and a BrushComponent?

Update:

I was able to apply material dynamically after changing BoxBrush actor to StaticMesh actor.

Thanks & Regards

Similar: https://answers.unrealengine.com/questions/184037/setting-bsp-material-in-blueprints.html