Modifying the Static Mesh Spawner
Up to this point, we’ve incorporated the crucial nodes into our graph, allowing us to debug and observe the distribution across the landscape through the nodes network. Now, let’s shift our focus to integrating the static meshes of our trees into Static Mesh Spawner.
Let’s revisit the PCG graph (specifically, Static Mesh Spawner), and then add some important elements that will prepare us for the next creative steps:
- Let’s go back to the PCG graph and turn off Debug mode on Static Mesh Spawner node. Select Static Mesh Spawner again, go to the right-hand side under Mesh Entries, and start adding three array elements by clicking the + button in the right-top corner, located to the right of Mesh Entries.
Figure 2.28 – Adding mesh entries to each array inside Static Mesh Spawner
- This will allow us to randomize three different trees and add a different variety to our landscape...