Building an Override function
In this chapter, we will delve into the capabilities of the Override function. This potent feature enables the modification or replacement of sections within a PCG graph during runtime. The Override function is particularly valuable for executing complex calculations within a node, which are then incorporated into the broader PCG graph. This facilitates dynamic alterations and enhancements to procedural content based on real-time inputs or conditions.
Execute with Context
The core aspect of this exercise revolves around creating the primary logic for point distribution and utilizing it to modify points within the PCG data collection. Previously, we focused on the Point Loop Body function. Now, our task is to develop a new function, which is again located in the FUNCTIONS tab, specifically under the Override section:
- Navigate to the Override panel inside the FUNCTIONS tab and search for
Execute with Context
. Click on Execute with Context to...