Search in

Sort by:

Everything Blueprint Scripting

Current Space

Question Status:

All Questions With Answer With Accepted Answer

Quick results

Search help

Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both.
Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.

You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with
each other. Examples

Best way to change\swap object in game?

0

Good day guys, I am new with BP and I have something in mind and would like some advice before starting it. I would like to be able to change a mesh in game with a widget. For example, 3 static meshes (Sphere, Cube and a Plane) and each time I am selecting next on the widget the actor will change as a loop, Sphere, Cube, Plane, Sphere etc... Is it something like turning visibility ON on the Sphere and OFF on Cube and Plane, etc.... or there is an other method to do so? Thanks in advance guys.

Yes you can do it that way if you like. Less work for the garbage collector that way.

You can also spawn and destroy. Just mind the collision and sizes either way, if they are meant to collide with things.

To cycle around an array of references to components or actors you can increase the index variable you make for it each time, adding 1 to it, mod by the length of the array and then assign that New value to the index var.

Thanks a lot MightyEnigma, Like I said, I am pretty new in BP. I did understand the logic of it but don't know where to start. I will try to figure that out. Do you know a tuto that can help me a bit? I will try to find some. Cheers, Matthieu