Features
Sources
Feed the renderer from terrains, placed prefabs and your own code.

A source adds its instances to a renderer while it is enabled and removes them when it is disabled. Sources in additively loaded scenes stream in and out with their scene. Each source draws into its Target Renderer, or the first enabled Foliage Renderer when that is empty.
Foliage Terrain Source
Add it to a terrain, or use GameObject > Kiwi Foliage > Draw Scene Terrains.
Trees tab
- Draw Trees: draws the terrain's tree instances with each prefab's LOD Group, cross-fade and impostor.
- Hide Terrain Trees: sets the terrain's Tree Distance to zero while the source is enabled.
- Trees Per Frame: how many trees are imported per frame, so very large terrains load without a hitch.
Details tab
- Draw Details: grass textures become crossed cards drawn with Foliage Lit, its healthy and dry colours and its grass wind. Detail meshes keep their mesh: with Use GPU Instancing on they draw with their prefab's own materials, and otherwise with Foliage Lit, taking their material's texture, colour, cutout and normal map.
- Detail Distance: zero uses the terrain's own Detail Distance.
- Detail Density scales the terrain's detail density, and Detail Fade Distance dissolves details out before the distance ends.
- Detail Shadows: lets details cast shadows.
Streaming tab
- Detail patches load nearest first within Streaming Budget Ms per frame and unload with a little hysteresis behind the camera. In edit mode they stream around the Scene view camera.
- Streaming Camera overrides the main camera.
Terrain edits (painting details, planting or removing trees) are picked up automatically.
Foliage Prefab Source
Stores a list of prefabs and placements relative to its own transform.
- Capture Selection adds every prefab instance among the selected objects and their children. With Hide Captured Renderers on, their mesh renderers and LOD groups are turned off (with Undo).
- Follow Transform moves every placement when the source object moves.
- From code, use
AddPlacementorSetPlacements.SetPlacementsreplaces the whole list in one step and is much faster for large lists.
Your own code
Call the renderer directly. Instances get stable integer handles.
var _renderer = FoliageRenderer.Main;
var _handle = _renderer.AddInstance(rockPrefab, position, rotation, Vector3.one);
_renderer.SetInstanceTransform(_handle, newPosition, rotation, Vector3.one);
_renderer.RemoveInstance(_handle);To write a reusable source, derive from FoliageSource and add instances in OnAttached. Add each handle to Handles and the base class removes them when the source is disabled. Do budgeted work in Tick. See Scripting API.
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.