I want to create a sandbox game where the landscape is provided to the client from the server, which in turn gets it from a database or static file (not decided yet).
I can see the cook on the fly options, and also streaming cook on the fly where it looks like the server cooks on the fly and passes it to the client. These might be options.
To get started I want to generate the content programmatically, rather than from file/database. In the UE editor I can see a “Landscape” entity which in turn contains the “RootComponent” entity. Hovering over the latter tells me that this entity cannot be renamed or deleted, but it can apparently be edited as C++ code…except that the link to do so does nothing because I am not using Visual Studio or Visual Code.
Essentially what I need to do is:
- Generate a landscape (initially this will just be a box with a light in it).
- Create a camera object and put it into the box.
Which function do I add this code to? Do I need to subclass RootComponent and override some sort of initialisation function?