Latest news
TutorialsUnreal Engine

Placing a Forest Across Terrain with Unreal Engine’s Procedural Foliage Tool

Unreal Engine 5’s Procedural Foliage Tool can place trees and plants across large terrain areas. This guide covers enabling the tool, setting up a spawner, adjusting density, and using multiple species together.

Photorealistic view of a large architectural landscape arranged with different tree speciesAI image
Representative image, generated with AI.Image: 3dsınıfı / FCA AI

In brief

  1. Before using the tool, enable Procedural Foliage in the Experimental section of Editor Preferences.
  2. Drag a Procedural Foliage Spawner onto a Landscape and scale it to define the distribution area.
  3. Foliage Type settings let you adjust density, growth, clustering, and collision behavior.
  4. Foliage Mode offers an alternative way to paint or erase static meshes on terrain by hand.

What will you learn in this guide?

Unreal Engine 5’s Procedural Foliage Tool can automatically distribute trees and other plant meshes across a large terrain area. This guide covers enabling the tool, setting up a spawner on a Landscape, choosing which meshes to distribute, and shaping the results through density and growth settings. It also explains how to use multiple tree types in one spawner and how to place foliage manually with Foliage Mode when needed.

The workflow involves editing directly in a project scene. For your first attempts, working in a small area makes it easier to see how the settings affect the scene and manage the time needed to resimulate. The numeric values below are starting settings from Epic Games’ sample scene; they are not universally suitable values for every terrain and mesh.

Requirements

  • The tools described in Epic Games’ guide are for Unreal Engine 5. Make sure your installation and project configuration support the tool.

  • Enable Procedural Foliage in the Experimental section of Editor Preferences.

  • To follow along with the sample trees, add the Open World Demo Collection content pack to your project. The source guide uses the HillTree_02 and ScotsPineTall_01 static meshes.

  • You need a Landscape in your project to distribute foliage across. If you’re just getting started, you can create a new level based on the Default Template.

  • The sources do not specify a particular account type, cost, hardware requirement, or UE5 minor version. Accordingly, no additional account or version requirements are stated here.

    Step-by-step Procedural Foliage setup

    1. Enable the tool and prepare the scene

    From the top menu, open Edit > Editor Preferences. Find Procedural Foliage in the Experimental section and check the box next to it. Then create a new level and open the Landscape panel from the Modes menu. Click Create to add terrain. If you’re working with an existing Landscape, you don’t need to create a new one.

    If you plan to use the sample trees, download the Open World Demo Collection pack through the Epic Games Launcher. Find it in the Vault section of the Launcher’s Library and add it to your project using Add to Project. You can access the pack’s content from the Content Browser or Content Drawer.

    2. Create a spawner and Foliage Type

    Right-click an empty area in the Content Browser and create a Procedural Foliage Spawner from the Foliage section. In the source example, the asset is named PFS_Example. Drag the spawner into the level and place it at the center of the area where you want to distribute foliage. The example position is zero on the X and Y axes and 200 units on the Z axis. In the guide, the spawner is scaled to 100 on X and Y and 10 on Z to create a large area.

    To create an asset for the spawner to use, create a Static Mesh Foliage asset from the Foliage menu in the Content Browser. This asset defines the static mesh to distribute and its placement behavior. The example names it Tree_00. Save the level and content to make it easier to compare settings later.

    3. Assign a mesh to the spawner

    Open the Procedural Foliage Spawner asset and click the plus button in the Foliage Types list to add a new entry. Drag the Tree_00 asset from the Content Browser into the Foliage Type Object field, or use the button to assign the selected asset to the field.

    Then open Tree_00. In the Mesh section, select the HillTree_02 static mesh from the Open World Demo Collection using the None field. Select the spawner in the level and click Resimulate in the Procedural Foliage section of the Details panel. This recalculates the distribution and creates the tree instances.

    The source specifically highlights one point: after creating a new distribution with Resimulate or changing an existing one, you may need to rebuild lighting using Build in the main toolbar. This step can take a long time when many static meshes are used.

    4. Adjust density and growth

    To change the tree distribution, inspect the Placement, Procedural, and Instance Settings sections in Tree_00. In the sample, Align to Normal and Random Yaw are enabled under Placement. This makes placement relative to surface normals and gives the trees varied orientations.

    In the Collision settings under Procedural, Shade Radius is set to 50 in the example. Under Clustering, setting Num Steps to 0 helps make the trees appear to be the same size and age in the sample. If the distribution looks too dense, reduce Initial Seed Density to 0.25. The guide then sets Num Steps back to 3, allowing the sample growth and spread process to be simulated again over several steps.

    The sample Growth settings use a Max Age value of 20 and a Procedural Scale Max value of 10. Cull Distance Max under Instance Settings is set to 20,000. These values are examples for a particular visual result; rather than copying them into scenes of different scales, check the result and resimulate.

    5. Add a second tree type

    Duplicate the first Foliage Type asset and name the copy Tree_01. Select the ScotsPineTall_01 static mesh in this asset’s Mesh field. Open the spawner, add another entry to the Foliage Types list, and assign the Tree_01 asset to it. Run Resimulate again on the spawner in the level.

    The source guide gives these example settings for the second type: Num Steps 4, Initial Seed Density 0.125, Average Spread Distance 100, Max Age 15, and Overlap Priority 1. Enable Can Grow in Shade and Spawns in Shade, and set Procedural Scale Max to 5. These settings are intended to let the distribution and growth behavior of the two types interact. If the density or clustering of either type looks unexpected, adjust the values and resimulate.

    Alternative method: Paint manually with Foliage Mode

    If you need controlled, localized placement rather than automatic distribution, open Foliage from the Modes menu. The shortcut is Shift+3. Drag the static mesh from the Content Drawer into the Mesh List field in the Foliage panel, select the Paint tool, and adjust the brush settings for your scene. Hold Shift while painting to erase.

    Static Mesh Foliage instances in Foliage Mode can be drawn in groups using hardware instancing. Actor Foliage has a render cost similar to adding regular Actors to a scene, and high density can cause performance issues. For large numbers of repeating plants, consider the static mesh option. Manual painting is useful when you need precise control over areas such as entrances, roadsides, or specific camera views.

    Common mistakes and next steps

    • Starting without enabling the tool: Check that Procedural Foliage is enabled in the Experimental settings.

    • Not adding a Foliage Type to the spawner: An object must be present in the Foliage Types list for the mesh to appear in the scene, and the Static Mesh Foliage asset must specify the mesh to use.

    • Increasing density with every simulation: Start with low density; examine the effects of density, step count, and tree type separately.

    • Skipping the lighting build: Keep in mind that you may need to run Build after Resimulate. The source notes that this can take a long time because of the number of static meshes.

    • Using Actor Foliage at high density: High density can affect performance. When choosing a distribution method, consider the difference between static mesh instancing and Actor-based placement.

    After your first pass, combine different types in one spawner and change density and growth values in small increments. Check not only the scene’s overall appearance but also foliage density along walkways and around buildings. Switching to Foliage Mode for local adjustments lets you refine specific areas without rebuilding the entire terrain.

    Sources and licensing

    Adapted into Turkish based on Epic Games’ Unreal Engine Procedural Foliage Tool Quick Start and Foliage Mode documentation. Both documents are identified as freely licensed in the source records; no specific license name is given in the source texts.

    Sources

    2 sources
    D
    dev.epicgames.comdev.epicgames.com/documentation/en-us/unreal-engine/procedural-foliage-tool-in-unreal-engine
    Summary
    D
    dev.epicgames.comdev.epicgames.com/documentation/en-us/unreal-engine/foliage-mode-in-unreal-engine
    Summary

    Source texts are not republished; short quotes are marked, everything else is our own summary and commentary.

    3dsınıfı’s take
    3dEditor’s assessment

    For architecture and visualization teams, this tool can speed up the placement of repeated trees across large landscape areas; combining different types in one spawner can also add variety to a scene. However, the result depends on the availability of suitable static mesh assets in the project and on rebuilding lighting after simulation. In particular, account for resimulation and Build times in your schedule when working with a large number of instances.

    For offices and students in Turkey, the best starting point is to try the sample workflow in the free documentation on a small Landscape area, then adapt the values to the scale of the scene. The sources do not provide pricing or hardware requirements, so it would be inappropriate to make additional assumptions when deciding on an investment. Also keep in mind that using Actor Foliage at high density can affect performance.

    Frequently asked questions

    How do you enable Unreal Engine’s Procedural Foliage Tool?

    Open the Experimental section in Edit > Editor Preferences and enable Procedural Foliage.

    How do you add trees to a Procedural Foliage Spawner?

    Add an entry to the spawner’s Foliage Types list, assign a Static Mesh Foliage asset to that entry, and select the static mesh to use in the asset’s Mesh field. Then run Resimulate on the spawner in the level.

    Can you paint trees manually on terrain in Unreal Engine?

    Yes. Open Foliage Mode from the Modes menu or with the Shift+3 shortcut, add the mesh to the Foliage panel, and place it on the terrain with the Paint tool.

    Comments and the forum are in Turkish.Join the discussion
    +

    Related news