Unity package
The package com.askrgarden.unity (in engine/unity/) sets exported trees up in Unity: shaders that read the wind data and draw the impostor, a scene wind component, and an importer that builds materials, the LOD Group and a prefab.
- Unity 6 (6000.0) or newer.
- URP: hand-written shaders and Shader Graph versions. HDRP: the Shader Graph versions. The Built-in pipeline is not supported.
What was checked
Checked by automated runs on Unity 6000.6 with URP 17.6: every pass of every shader compiles, and an FBX export imports, gets its LOD Group and renders. Not checked yet: use by a person in a real scene, the HDRP target in an HDRP scene (it only compiles), the GLB route, and the wind motion by eye.

Install
Pick one:
From AskrGarden. In the editor: File > Install engine support…, choose Unity and your project folder (the folder with
AssetsandPackages). From the command line:shaskrgarden-cli engine-package unity D:/Projects/MyGameThe package lands in
Packages/com.askrgarden.unity, where Unity finds it the next time the project gets focus. Installing again replaces the old version cleanly.As a zip.
askrgarden-cli engine-package unity D:/somewhere --zip(or Save as a zip file instead in the same dialog) writesAskrGarden-Unity-<version>.zip. Unzip it into the project'sPackagesfolder.From disk. In Unity: Window > Package Manager, + > Install package from disk…, and pick
engine/unity/package.jsonof your AskrGarden folder.
An AI agent can do the same with the MCP tool install_engine_package.
Set up a tree
Export the tree with its impostor:
shaskrgarden-cli export oak.treegen.json -f fbx -o out/oak --impostoror, in the export dialog, FBX with Include impostor.
Copy the whole export folder into
Assets/: the model,oak_export.jsonand every texture.The package sets the tree up when it is imported. Next to the model you get:
File What oak_Materials/one material per tree material, textures bound, and a packed *_ORM.png(occlusion, roughness, metallic)oak_ImpostorCard.assetthe impostor card, with bounds that keep it from being culled when the shader moves it oak_Tree.prefabthe LOD Group, with the screen sizes of the export and the impostor as the last level Drop
oak_Tree.prefabin the scene.Add the wind once per scene: GameObject > AskrGarden > Wind. It drives every AskrGarden tree: direction, strength, gusts and fade distance. It can also copy a Unity Wind Zone. Without it, each material uses its own default strength.
To run the setup by hand: right click the model, the json or a folder > AskrGarden > Set Up Tree, or Tools > AskrGarden > Set Up Every Tree In The Project. Turn the automatic setup off with Tools > AskrGarden > Set Up Trees When They Are Imported.
What is in the package
| Part | What |
|---|---|
AskrGarden/Vegetation (URP) | bark and leaves: alpha clip or alpha to coverage, normal and ORM maps, crown occlusion, light through leaves, colour variation per tree, three-layer wind, motion vectors |
AskrGarden/Impostor (URP) | the 3 nearest views blended with parallax, the card cut to the silhouette in up to 8 strips, shadows that face the light, three quality levels |
AskrGarden/Graph/Vegetation, AskrGarden/Graph/Impostor | the same maths as Shader Graphs, with URP Lit and HDRP Lit targets |
| Askr Wind component | the scene wind |
| importer | the setup described above |
Hand-written shaders or Shader Graph?
| Hand-written (URP) | Shader Graph (URP, HDRP) | |
|---|---|---|
| Pipelines | URP | URP and HDRP |
| Light through leaves (translucency) | yes | no (the Lit target has no such input) |
| Alpha to coverage | yes | no |
| Impostor quality levels | shader keywords (cheaper variants) | one variant, branches on a value |
| Simpler impostor in depth and shadow passes | yes | no (same cost in every pass) |
| Easy to change the look | edit HLSL | add nodes between the function and the master stack |
URP projects get the hand-written shaders unless Tools > AskrGarden > Use The Shader Graph Shaders is ticked. HDRP projects always get the graphs. Run Set Up Tree again after changing the choice. Both versions use the same material property names, so values survive the switch. In a URP-only project Unity shows the graphs' HDRP target as unavailable: that is expected and harmless.

Close to the camera the impostor shows a lighter, soft patch in the crown: it is meant for the last LOD, seen from afar.
Things to know
- Keep mesh compression off on the tree models: the wind reads the pivots from UV1 and UV2 and the weights from the vertex colour, and compression quantises them.
- FBX is the checked route. GLB needs glTFast and builds no LOD Group by itself; the package's importer builds it.
- The impostor material's Strips Drawn trades overdraw for vertices (8, 4, 2 or 1 strips).
- The wind values and their defaults are the same as in the other engines (wind values).