# Static Mesh Component derived from c++ actor cannot have it's material change in BP editor

**URL:** <https://forums.unrealengine.com/t/static-mesh-component-derived-from-c-actor-cannot-have-its-material-change-in-bp-editor/372099>\
**Category:** Rendering\
**Tags:** child-actors, unreal-engine, editor, CPP, question, Blueprint\
**Created:** [September 30, 2016, 8:15pm UTC](https://forums.unrealengine.com/t/static-mesh-component-derived-from-c-actor-cannot-have-its-material-change-in-bp-editor/372099 "2016-09-30T20:15:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![PocketNerd](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PocketNerd](https://forums.unrealengine.com/u/PocketNerd)\
**Post date:** [September 30, 2016, 8:15pm UTC](https://forums.unrealengine.com/t/static-mesh-component-derived-from-c-actor-cannot-have-its-material-change-in-bp-editor/372099/1 "2016-09-30T20:15:55Z")

</div>

Hi there, I’ve added a UStaticMeshComponent to an actor via c++ in this fashion;

```
Mesh = CreateDefaultSubobject<UStaticMeshComponent>(TEXT("Mesh"));
RootComponent = Mesh;

```

And when I make a Blueprint that derives from that c++ actor, the static mesh component shows up and is editable. However, after setting a Static Mesh to be used in that component I do no get the immediate option to set it’s material like you would if you were to add the component through blueprints itself. Instead, this is what I see.

![109179-capture.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/2/9/229cce402be0a884a94502993c81fd3887e7fc57.png)

Is there something I am doing wrong here? Any help would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![Teklarit](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Teklarit](https://forums.unrealengine.com/u/Teklarit)\
**Post date:** [March 14, 2017, 10:15pm UTC](https://forums.unrealengine.com/t/static-mesh-component-derived-from-c-actor-cannot-have-its-material-change-in-bp-editor/372099/2 "2017-03-14T22:15:12Z")

</div>

I have the same problem.  
I can see material settings here:  
Rendering → Override Materials. So, it work’s for me. 🙂

 ![130064-ue_problem1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/5/c/b5c8df7eac113eca0b9bf44a1bd5e11d3ed23699.png)
