# 2. Texture and Model Import Presets
Part of [[Asset Import Pipeline]]. Back: [[1. Importers Metas and the Import Cache]]. Next: [[3. Quest Texture Compression and Platform Overrides]].
> [!warning] Code not compiled in Unity
> Type-checked against Unity 6000.5.8f1 editor assemblies (see the hub). The Default Preset Manager UI has not been clicked in this Editor.
A **Preset** is a serialized snapshot of an importer's settings that you can apply to other importers of the same type. In [[Game Programming Patterns (Review)]] terms it is **Prototype**. Use Presets when the settings should remain visible and editable, and when a teacher may want to change the default without shipping a new C# version. Use a postprocessor (part 4) when a folder rule must be impossible to miss.
## 2.1 Create a texture Preset
1. Import one representative texture (for example an albedo in `Assets/Art/_Defaults/`).
2. In the Inspector, set the default (non-platform) values you want everyone to start from: Texture Type (Default vs Normal Map vs Sprite), sRGB (on for albedo, **off** for masks, ramps, and most data maps), Mipmaps, Filter Mode, Max Size.
3. Platform overrides can live on the Preset too; part 3 adds the Android / Quest ASTC override. You can author that now or after you read part 3.
4. Click the Preset icon at the top-right of the Inspector (the slider-and-diamond control in recent Editors) or use the Inspector's **Presets** menu, and **Save current to...** a new Preset asset, for example `Assets/Art/_Defaults/Tex_Albedo.preset`.
Create a second Preset for normal maps (`Tex_Normal.preset`): Texture Type Normal Map, sRGB off, and usually the same Android max size with ASTC (normals tolerate 6×6, but bump to 4×4 if the surface looks faceted in VR).
## 2.2 Create a model Preset
Select an FBX, then set at least:
- **Scale Factor** / **Convert Units** so one authoring unit becomes one Unity meter. A classic classroom bug is a 100× character because someone exported in centimeters and left scale at 1.
- **Mesh Compression** as you want it for the target (off while you are still looking at silhouette, then a modest setting for a Quest build).
- **Normals / Tangents** generation if the DCC file does not include them.
- **Animation**: Import or not; Animation Type (Generic vs Humanoid) if you will use Mecanim ([[Animation]], [[Animation Advanced]]).
- **Material Import Mode** — often **None** (or to a remapped folder) so a student FBX does not spawn a unique material per import. You will thank yourself when [[URP Shaders and Shader Graph]] materials are assigned once.
Save `Assets/Art/_Defaults/Model_Character.preset` and, if you need it, `Model_Prop.preset` with animation off.
## 2.3 Apply a Preset to existing assets
Select one or many textures or models, open the Preset, and **Apply** (or drag the Preset onto the Inspector of a compatible importer). This writes the settings into each asset's `.meta` and triggers a reimport. It will overwrite manual tweaks on those assets — say so out loud in class before you apply it to a folder of 200 textures.
From script, the official type is `UnityEditor.Presets.Preset`:
```csharp
using UnityEditor;
using UnityEditor.Presets;
namespace AssetImportPipeline
{
public static class ApplyPresetToPath
{
public static bool Apply(string assetPath, Preset preset)
{
var importer = AssetImporter.GetAtPath(assetPath);
if (importer == null || preset == null) return false;
if (!preset.CanBeAppliedTo(importer)) return false;
return preset.ApplyTo(importer);
}
}
}
```
`CanBeAppliedTo` and `ApplyTo` are the official gates. After `ApplyTo`, Unity reimports as it would if you had clicked Apply in the Inspector. I have not run this helper in 6000.5.8f1; if `ApplyTo` does not dirty the importer in a batch script, follow it with `importer.SaveAndReimport()`.
## 2.4 Default Preset Manager
Unity's **Default Preset Manager** (search for it in Project Settings, or via the Preset window's default-assignment UI — labels vary slightly by Editor patch, so use the search) lets you say: "new `TextureImporter` assets under `Assets/Art/Characters/` get `Tex_Albedo.preset`, unless the name contains `_N` or `_Normal`."
Folder and name **filters** on a default Preset are the no-code version of part 4. Prefer them when:
- The rule is stable and you want it visible to students in Project Settings.
- You do not need procedural logic (ASTC block size from suffix, "if hdr then ASTC_HDR_6x6").
Use a postprocessor when the rule is logic, when you need to log violations, or when you want `GetVersion` to force a project-wide reimport after a policy change.
Default Presets apply to **newly imported** assets. They do not silently rewrite every existing `.meta` when you add a default. For a mid-semester policy change, either apply the Preset to the folder once, or bump a postprocessor `GetVersion` (part 4).
Next: [[3. Quest Texture Compression and Platform Overrides]].