In this part of the chapter, we want to touch on using UMG to control the behaviors influenced upon our agents. We will do this by first creating a UMG widget with the proper controls to manipulate our three float variables. Then, we must assign this user widget to the owning PlayerController. Then, we will end by adding a function that will reset the Agents to their original position, starting the simulation fresh.
Let's navigate to our Content Browser, create a new Widget blueprint, and name it
FlockingUI. Let's open this up and go to the Designer tab to get started, as follows: