Unity
The easy way is the AskrGarden Unity package: copy an export folder into Assets/ and you get materials, the LOD Group with the impostor as its last level, and a prefab, with wind. See Unity package.
Without the package, two routes still bring a tree into Unity. Both keep every LOD, the materials and the wind data, but the wind and the impostor then wait for a shader that reads them.
| FBX route | GLB route | |
|---|---|---|
| Importer | Unity's own FBX importer, default settings | the glTFast package |
| LOD Group | built automatically from the _LOD<n> names | LODs come as child objects |
| Materials | Standard materials with base colour and normal linked; assign the rest | full PBR from glTF |
| Wind data | colors, uv2, uv3 | color, uv1, uv2 |
| Checked | yes, with Unity 6000.6 (scripts/unity_fbx_check.py) | — |
FBX route
- Export with FBX and Include textures on.
- Copy the FBX and its textures into the same folder under
Assets/. - Unity imports it with file scale 1 (meters), Y up, and an LOD Group built from
<name>_LOD0,_LOD1… Each LOD has two submeshes: bark and leaves.
Then, without the package:
- The leaf material imports as Opaque. Switch it to Cutout with the alpha cutoff equal to the leaf material's Alpha cutoff (0.5 by default), or use a foliage shader.
- Base colour and normal maps are linked. Roughness, AO and height are written beside the FBX but a Standard material does not pick them up from FBX: assign them in the material (URP Lit: Metallic/Smoothness from 1 − roughness, Occlusion, Height Map).
- Shadow proxies (
<name>_LOD<n>_Shadow) import as separate children outside the LOD Group: set their renderer to Shadows Only and the LOD meshes to cast no shadows. - An exported impostor card is named
<name>_LOD<N>, so it becomes the last level of the LOD Group. Unity's own materials show it with one view only; the package's impostor shader draws it properly.
GLB route
Install glTFast (Unity's glTF package) in your project, then drop the GLB in Assets/. The LODs come as children with full PBR materials; leaves are already cut out (MASK). Wind data is in color, uv1 and uv2. You build the LOD Group yourself, using the suggested screen sizes in <name>_export.json. This route is less checked than FBX.
Leaves
On the leaf texture's import settings, enable Mip Maps Preserve Coverage and set its alpha cutoff to the leaf material's cutoff. Without it, leaves thin out and vanish with distance as the mip levels blur the alpha. The package's importer does this for you.
Wind and impostor shaders
The wind data and the impostor need a shader that reads them. Unity's own materials ignore the wind channels and show the impostor card with one view only. The package brings both shaders: see Unity package and Engine shaders.
Units, axes and normals
Meters and +Y up in every format; FBX says 1 unit = 1 m, so Unity's file scale stays 1. Normal maps are written in the OpenGL convention (+Y), which is Unity's.