Quick Start
Last updated
Last updated
In this Quick Start Guide, you'll learn how to set up and use the UBS Component to enable build mode in your character. You'll configure the inputs for enabling and disabling build mode, as well as for placing buildable objects.
First, add the UBS Component to the character you want to use for building. This component will handle the functionality required for enabling and disabling build mode.
In your character's blueprint, get a reference to the UBS Component in the graph. This will allow you to use its functions to manage build mode.
Use the Try Enable Build Mode function to enter build mode. This function has two input parameters:
Buildable Definition: Set this to the buildable definition you want to use. Our example will be using the DA_Wooden_Foundation_Def
Proxy Class: This defines the class which we'll be using for the proxy. For this example we'll be using UBF_BuildableProxy
class.
Use the Try Build function to place a buildable object. Hook this function to the Left Mouse Button input event, so the player can place a buildable while in build mode.
You can turn the Disable Build Mode on Build Success
off if you want the player to be able to continuously place the same buildable with the build mode disabling.
Use the Try Disable Build Mode function to exit build mode. For this tutorial, weβll connect this to the Right Mouse Button input event.
Note: It's recommended that you set up your own input system, such as the enhanced input system, rather than relying on raw input events like weβre doing in these examples. This will give you more control and flexibility for future customization.