Search in
Sort by:

Question Status:

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
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Is UWorld used to create multiple game "Worlds" ?

After doing some experimenting and evaluation of UE4 over the past few months, I now wish to see if I can actually create different multiple "worlds" where levels can be generated or created in.

What I want to accomplish is that to progress in a game, a player "teleports", or is transferred from one game world to another, perhaps similar to traveling from one game level to another. The new world will have different world settings, parameters, rules, themes and assets etc

According to the API documentation for UWorlds it states

"In a standalone game, generally only a single World exists except during seamless area transitions when both a destination and current world exists. In the editor many Worlds exist: The level being edited, each PIE instance, each editor tool which has an interactive rendered viewport, and many more."

After searching the web, this answer hub, and the forums I cannot find anything of real substance to give a clear indication if UWorlds is actually used to create a multiple worlds in a game where a player in a game can be transported to a new game world. Also, if what I want to accomplish can be done, I cannot find any hint how to do it in C++, Blueprints or the editor. Even though it seems from the documentation text that multiple worlds are possible to create in the editor, I cannot find a "New world" menu option to create a world to populate with actors, players, let alone how one can set up a "door" to move from one world to another. However there is a menu option in the floating editor window that is "Attatch to->choose world"

So my question comes to this. 1 : Can I create a game as described above in UE4?

If yes 2a : Is UWorld the correct class to use to do this, and if not what is the method that is used? 2b : Do examples or documentation of how to accomplish what I am aiming to achieve exist, and where can I find it?

I hope this is not too difficult a query, and would appreciate any response that can help. Thanks in advance.


No answers to this query.

No matter. I think I have found out the answer myself after taking a couple of guesses and trying them out to find that they seemed to work.

I created a new UWorld when I guessed using the UWorld::CreateWorld() command was the way to do it. Un-intuitive to me in that it looks like a class creates itself with it own creation function. Shame that it seems one cannot do the same with a level in c++.

Second, after digging around thinking that I needed to create a 'persistent level' (or any level using c++ for that matter) so as to add objects to this world I found nothing. Concluding that the UE4 editor is analogous to a 2D image editor like Gimp or Photoshop, I guessed the act of creating a new world also creates a 'persistent level' much like an image editor needs a canvas to display the image on. Yep that was it. After adding a light source and a floor to this persistent level it seems I was able to see that had transport my character into the created world.

What are called levels in the editor are really analogous to layers in an image editor. The term levels mislead me into believing that thees were separate maps that could not be overlayed on top of each other. But they can, and turning each layer, sorry, level on and off in the editor demonstrates this as have a few tutorials on streaming levels.

A lot more needs to be investigated, but the non existence of documentation and tutorials etc, not to mention the inexplicable inability of the editor to have multiple worlds to edit can make this a grueling experience.

Product Version: UE 4.18
more ▼

asked Feb 14 '18 at 07:41 AM in Using UE4

avatar image

31 3 5 7

avatar image Sam54123 Dec 02 '18 at 01:46 AM

How did you end up making the level on the other world? Did you load an existing ULevel or manually spawn lights using SpawnActor()? Also, how did you get the player controller into the other world, as I saw a lot of people had issues with that.

avatar image IDominioNI Dec 08 '18 at 11:37 PM

It's been a long time since I had done this and I was performing a testing and evaluation at this time. I have not pursued this further yet as I have had not need to just yet. Had quick look to find the code I did to do this and could not find it. Will have to get back when/if I do as I will one day get back to this. I could have mistakenly deleted it while performing some cleaning.

As far as spawning objects in this new world persistent level, it was done in code and not through the editor as one cannot create a new world and display it in the editor as I remember. And as I remember, everything was in back and white and very dark as only a single point light source was used.

As I said, this was done as a test only.

I hope this helps.

avatar image IDominioNI Dec 08 '18 at 11:42 PM

Oh Forgot, I did not create a level in this new world. As I mentioned, there is a level called "persistent level" and when spawning object into this new world, they were spawned into the default persistent level and I did not create any new levels.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

I think you are looking about the World problem the wrong way. If you want to have a the player move between major sections, treat each major section like a level (i.e a Map). UWorld is more of an interface to hold the level, and spawn in actors. Note World settings are applied per map, and each map can have its own gamemode override that specifies the world.

In short, I think you should be thinking of maps as worlds, not UWorlds as planets.

more ▼

answered Dec 02 '18 at 02:06 AM

avatar image

70 2 3 5

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question