Getting started
Getting started
Draw your terrains and placed prefabs, see what happens to your shaders and check the result.
Install
Add the package with the Package Manager. It needs Unity 6000.0 or newer and works with URP 17, HDRP 17 and the Built-in Render Pipeline.
Draw your terrains
Choose GameObject > Kiwi Foliage > Draw Scene Terrains. The command:
- creates a Foliage Renderer if the open scenes have none, and links it to the first Wind Zone it finds;
- adds a Foliage Terrain Source to every terrain that has none.
While a terrain source is enabled, the terrain's own Tree Distance and Detail Distance are set to zero so Unity stops drawing them. Disabling or removing the source restores both values.
Draw placed prefabs
Select prefab instances in the Hierarchy (rocks, bushes, hand placed trees) and choose GameObject > Kiwi Foliage > Prefab Source From Selection. Their placements are stored in a Foliage Prefab Source and their mesh renderers and LOD groups are turned off, so the GPU draws them while their colliders and scripts keep working. Show Captured Objects in the source's inspector turns them back on.
What happens to your shaders
The first time a material is drawn, its shader is checked:
| Shader | What the renderer does |
|---|---|
| Kiwi Foliage shaders and Leafshaper | Draws it as it is. |
A .shader file or Shader Graph in your project or a package | Copies it to Assets/Kiwi Foliage/Converted Shaders with the instancing setup added, and draws a copy of the material with it. |
| Unity's built-in shaders (Standard, Legacy, Nature) | Draws with Kiwi Foliage/Foliage Lit, copying the main texture, colour, cutout and normal map. |
Conversions are recorded in a material library at Assets/Kiwi Foliage/Resources/KiwiFoliageLibrary.asset, which players load at runtime. See Shaders.
Check the result

Select the Foliage Renderer. The header shows its state, and the numbers below it show instances, visible instances, draw calls and GPU memory. The Prototypes tab lists every prefab it draws with its levels of detail and any problems. The Debug tab colours instances by level of detail, by prototype or by cross-fade.
Still stuck?
Bring the renderer state with you.
Include the Kiwi Foliage version, Unity and render-pipeline versions, the graphics API, the Foliage Renderer's header state and statistics, the Shader Setup row for any shader involved, and a minimal scene.