Features
Large forests
Plant terrain trees and prefab instances, set levels of detail, and keep the GPU Resident Drawer off.

Leafshaper's baked prefabs draw through Unity itself. Each prefab has an LOD Group that cross-fades from its mesh levels to an octahedral impostor and a billboard, so you need no other package to fill a scene with trees.
Terrain trees
Register a baked prefab with a Terrain: select the tree's recipe, assign the Terrain and choose Add to Terrain, or use Window > Leafshaper > Forest Scatterer. The terrain draws its trees with instancing and keeps their colliders. Terrain trees turn only about the vertical axis.
Prefab instances
Place baked prefabs in the scene or spawn them from code. Use this for trees that move, grow, or appear and disappear while the game runs. In URP and HDRP, both Leafshaper shaders are SRP Batcher compatible, so trees that share a material draw in batches.
How many trees
Unity culls each tree and picks its level of detail on the main thread, so the cost grows with the number of trees in the scene. In the Unity 6000.6 Editor at 2560 × 1440 on an Apple silicon Mac, one frame of the Forest Showcase valley took:
| Prefab instances | URP | HDRP |
|---|---|---|
| 1,000 | 10.2 ms | |
| 2,000 | 13.2 ms | |
| 3,000 | 9.7 ms | 13.5 ms |
| 4,000 | 9.9 ms | 18.1 ms |
| 5,000 | 12.9 ms | |
| 6,000 | 14.7 ms |
A built player is faster than the Editor. The Forest Showcase scene draws 3,000 trees this way as a preview and needs Kiwi Foliage for its full forest.
Levels of detail
The baked prefabs' LOD Groups follow your quality level's LOD Bias, which is 2 in new URP and Built-in projects and 1 in HDRP. Unity's distances double with it. Forest trees change to their impostor at 0.22 of the screen height, both in the Forest Showcase prefabs and in new trees made from presets. For an 18 m tree that is about 80 m away at a bias of 1 and about 160 m at a bias of 2. Bushes, ferns and other plants with a short trunk change at 0.08. The Forest Showcase divides the quality bias out so its forest matches in every pipeline, while your own scenes follow the bias as any LOD Group does, and Kiwi Foliage applies the same bias. Set LOD & Impostor on a recipe and rebake to move the levels of your own trees.
GPU Resident Drawer
Leave the GPU Resident Drawer off in projects with Leafshaper prefabs. In URP 17.6 it cut the main thread to 4–8 ms at 20,000–50,000 trees, but it left out many trees at their impostor level, and in HDRP it left out ground cover. The URP and HDRP templates turn it on, so Leafshaper asks once per project, when it is imported or Getting Started opens, whether to turn it off. Getting Started and the tree inspectors keep a Turn Off button for projects that keep it on.
More trees
For forests of hundreds of thousands of trees, install Kiwi Foliage. It culls every tree on the GPU and draws each mesh level with one indirect call, and Leafshaper switches your terrains and tree groups to it on its own. See Using Kiwi Foliage.
Still stuck?
Bring the recipe with you.
Include the Leafshaper, Unity and render-pipeline versions, the operating system and graphics API, the first Console error, the preset and seed, and the steps that reproduce the problem.