Mesh of Actor and SpawnActor
In my Actor constructor, I set the Material like this:
And when I spawn the Actor, I do the following:
However, this doesn't seem to leave me options when wanting to change the Material, or initialize the class with a different Material than what is hardcoded (Maybe I want to block to turn to gold after the player has walked near it..who knows..)
Should I create several different cube classes for each material?
Or is there a way to modify the Material of a given Actor after spawn?
Or perhaps spawning with ::StaticClass() is the issue?
I am too new to Unreal to overcome this issue it seems. Help appreciated.
asked Mar 12 '16 at 10:05 PM in C++ Programming
Follow this question
Once you sign in you will be able to subscribe for any updates here