Runtime Baking (Mirage PRO only)

You can bake impostors at run time using the MirageRuntimeImpostor component. The parameters are identical to the Mirage editor window, and you can use the same presets.

The baking process is blocking at the moment and usually takes 1 to 2 seconds.

Trigger modes

There are currently two trigger modes:

Mode Behaviour
OnStart Bakes the impostor when the Start method is called.
ViaScript Creates or updates the impostor by calling the public method MirageRuntimeImpostor.BakeRuntimeImpostor().

Save Path

Impostors are saved as packed prefabs, embedding the quad mesh, the atlas(es) and the material. You can customize this path in this section.

Either type the path relative to the Assets folder, or use the file browser with the dedicated button. The label underneath the text field holds the actual, unique path that will be used for the impostor.

If the path contains one or more non-existing directories, they are created automatically at baking time. No file or directory is created before baking.