Download

Change Assets in game

Hi Everyone! I was wondering if anyone could point me in the right direction to the documentation or any tutorials for changing assets during game play. I would like to be able to swap assets similar to this project on ue4arch’s website https://www.youtube.com/watch?t=92&v=aeeGxW1qeEc

Go forward to 1:30 or so to see what I’m talking about.

How would you handle lighting for this type of scenario?

Thanks in advance!

I believe you can do this in blueprint with a simple toggle on visibility with the assets you want, but this assets must be set to movable and you can’t bake lights on them, otherwise the shadow they project on the floor won’t be updated once they swap in gameplay.

Thanks for the reply. That’s what I’m looking for…the documentation on how to create a blueprint to handle changing actors during gameplay. I’ve been able to create a blueprint for an actor where i can walk up to it, it’s highlighted, and then I can press a key to cycle through 3 materials. Looks like this Static Mesh > Multigate (Pins for each Element of the object > Set Material (one for each material I want to cycle through). I was hoping someone could help me figure out how to do the same for an actor change. Any suggestions would be appreciated.

Thanks,
Mike

I did this here just to show you, it’s quite easy and you can use the same logic you did for the material change. Everytime I hit the input, it changes the asset. Hope it helps :slight_smile:

e77af3a4f5f548c33555f28694d0d257008063d5.jpeg

That is EXACTLY what I was looking for! Thank you very much!

No problem, glad I could help :slight_smile:

Is their a way to do this, so instead of assets, it would be static mesh actors being changed during gameplay?

with the same logic, yes of course!

Thans for that :wink:

http://Job4Living.com/?ref=28189

We have to do it in blueprint or level blueprint?