Adding grass to Custom Levels
How would one go about adding grass to a custom level? I haven't done any research yet, but I feel grass spawning might have something to do with
AFGCliffActor
and the fact that mesh CPU access is enabled for meshes used for landscaping (e.g. CliffCone_01
).4 Replies
Solution
it does not. just paint grass on your landscape and that's it
for grass on top of static meshes you indeed need to use AFGCliffActor though
Okay, thank you! I was contemplating doing both: grass on landscape should be very easy, but I'll need to investigate grass on static meshes.
Okay, I think I got this working. It's pretty straightforward, but there's a few things to note:
- The static mesh must have CPU access enabled so that the cliff actor manager can use geometry data to decide where to put down the grass
- The static mesh needs to be assigned in two places, the
AFGCliffActor
itself (to determine where to spawn the grass) and in the static mesh component (so that the mesh exists in the world)
- You need to provide a foliage type (I used a custom thing I made a while ago, which is not exactly grass)
Also, please don't be like me and overdo the density multiplier 😅