Skip to content

Preset Importer

Guillaume edited this page Feb 16, 2018 · 1 revision

The preset importer allow you to define Presets to apply to files having a path matching the given filter.

You should have only a single Asset Importer Option file in your project. To create it, just right click in your project window and choose Create > Asset Importer Option

Once selected, your inspector will look like this :

Preset Importer

Using the top button you can add a preset per type of asset (Texture or Mesh), then opening the section, you can define :

  • The filter : this is the filter that the importer will try to match to the path. It use basic wildcard : * mean "any number of character there, and ? mean "none or one character there". So *_Normal* would match Character_Normal.png or Character_Normal_Special.jpg, but *_Normal would only match Character_Normal without file extension!
  • Preset enabled : you may want to keep a preset in the project to not have to recreate it, but disable it for now. If a preset is disabled, it won't be applied to matching file.
  • The preset settings : this is using the importer setting like you would see on an asset of that type. Just set it up to whatever you want the imported asset setting to be.

NOTE : preset are only applied during the first import of the file. Re-importing a file won't make the preset reapply, and renaming it to something that match the filter (e.g. renaming Character to Character_Normal won't make the preset with a filter *_Normal* to be applied to the file).

Clone this wiki locally