Getting Started

Universal Build System can be setup in just a few simple steps. Add UBS_Component to your PlayerController and add UBS_Interface to your PlayerController and GameInstance, then setup the two interface functions. You then setup all your building objects in DT_HISM, but it is recommended that you duplicate this data table so future updates do not overwrite your work.

You will need to determine how you get your interaction hit and store it in a variable so that UBS can use it. The example above shows the variable I created for testing purposes. The example below shows how I am getting interaction hits.

In the example above, GetTracePath is a custom function I created to return the current location of the player camera and the end location of the interaction trace based on the current forward vector of the player camera and the specified length, 1000 in the example.

In the example above, I am simply using left mouse button to determine which UBS function to run. There are multiple input examples in the UBS_Controller blueprint. Use these examples as references.

In the example above, I am simply hard-coding the slot name, but you would most likely have a variable that stores your current save game slot name. You will want this interface function to return that variable.

Shown above is all the information of a single building object. You will be doing majority of your work in the data table. No need to create hundreds of individual actors, as you will instead store them all in a single data table. The next section will go over everything you need to know about the data table.

Last updated