Get or Set Materials of Spawned actors

Hi i am trying to copy some objects have same tags. I am following this steps. First i spawned new bp actor with same class of source object. Then i set new object’s transform to older one’s transform. Finally i am trying to set its material to older one’s material. Spawning works fine but i couldnt realise how to set or get materials of spawned actors. The actors are blueprint actors which i created from various meshes and the spawned randomly in game. I try the code below but casting is failed. Any idea? My another question is my way of cloning is true or is there an easier way to cloning an object in game? Thanks…

2 Likes

It’s not a static mesh actor, it’s one of your blueprints. So you need to cast to your blueprint name, and then access the static mesh within that.

2 Likes