Creating Dynamic Material Instances (C++)

Hey guys,

I have a weird issue.
I try to create dynamic material instances in c++ code.
At BeginPlay() everything works fine but when I Spawn a new Actor of the class using the material I get a because my dynamic material instance is NULL.

I have:
1 Actor which has 5 ChildActorComponents. (Lets call him MasterActor)
5 ChildActorComponents which hold the following Actors
5 Actors (Lets call them FadeActor (I want them to fade in or out))

The MasterActor is a menulike Actor which can rotate the other actors to the left or the right.
When hitting the Left Key all the Actors rotate to the right. The first actor from right should disappear now and a new Actor (FadeActor) will be placed left from the others
The opposite with the Right Key.

The weird Thing is that the DynamicMaterialInstances of the new Actors which will be spawned are all NULL.
The first FadeActors loaded work fine.

I hope you can help me with this Issue.

Thank you in advance for your answer :slight_smile: