Floralin
DocsTroubleshooting

Troubleshooting

The problems people meet, each with its fix.

Compiler errors after importing a pack

The Console shows errors in Assets/Floralin/Runtime, such as:

Assets/Floralin/Runtime/Editor/FloralinBrowser.cs(130,38): error CS1061: 'FloralinSpecimens.Entry' does not contain a definition for 'cost'
Assets/Floralin/Runtime/Editor/FloralinBrowser.cs(130,46): error CS0103: The name 'PlantCost' does not exist in the current context

An older pack was imported after a newer one, and its older runtime replaced part of the newer one. This happens with Low Poly Wildflowers 1.0.1 imported after Low Poly Bushes. Nothing is lost. Either fix works:

  • Import the newest Floralin pack you own again (here: Low Poly Bushes). The errors go and every pack works.
  • Or update the older pack in the Package Manager and import it: Low Poly Wildflowers 1.1.0 and later carry the same runtime as Bushes.

To avoid it, keep your packs up to date and import the older ones first. See The setup check.

The plants are pink

The project uses HDRP, which the included shader does not support. Assign a vertex-colour material of your own: a Shader Graph with a Vertex Color node into Base Color. The Universal Render Pipeline and the Built-in pipeline work as they are.

The demo scenes warn about missing scripts

The demo scenes are set up for the Universal Render Pipeline. In the Built-in pipeline they play without post-processing, and their URP parts show as "The referenced script on this Behaviour is missing!". Remove those components or ignore the warnings: the plants are not affected.

The water is one flat colour

The Floralin/Water shader of the Riverside scene needs the camera depth texture. In URP, turn Depth Texture on in the pipeline asset and keep the renderer's Depth Texture Mode at After Opaques, its default.

The flat faces look grainy

Screen-space ambient occlusion puts its sampling noise on large flat faces. Leave it off.

Plants switch detail or vanish too early

Raise Edit › Project Settings › Quality › LOD Bias, for each quality level you use, or edit the plants' LOD Groups. See Level of detail.

A scene with many live plants loads slowly

  • Run Tools › Floralin › Find Slow Live Plants and replace what it lists with prefabs. See Cost.
  • Use Detailed colliders only on baked plants.
  • For thousands of plants, repeat a few specimens or bake them.

A dialog says a pack needs a newer runtime

An older pack was imported after a newer one. Import the newest Floralin pack you own again. See The setup check.

Plant parts or the plant inspector appears twice

A pack from before the shared runtime left its own copies of the tools in the project. Run Tools › Floralin › Check Installed Packs and let it delete the duplicates.

There is no Plant Browser in the Tools menu

The browser came with runtime 1.1.0. Assets/Floralin/Runtime/floralin-runtime.json says which runtime the project has; update your pack, or import any pack on runtime 1.1.0 or newer.

A bonus tree, rock or fern changed shape after an update

Bonus scenery is not covered by the promise that placed plants keep their shape: an update may improve those models, and the changelog names the ones it changed. The pack's own plants never change. To keep a bonus model as it is, copy its prefab and meshes out of the pack's folder before you update. See Several packs and updates.

My colour or LOD change was gone after an update

An update replaces the pack's own files. Keep your changes on plants in a scene, on a Prefab Variant or a material copy outside the pack's folder, or on baked plants. See Several packs and updates.

Lightmapped plants show wrong colours

Enable Generate Lightmap UVs on the models before you bake lightmaps: the first UV channel holds the palette references.

Something else

Write to hello@floralin.dev. Say which pack and version, the Unity version and the render pipeline.