ImportSettings
A class in Root.Township, the global namespace.
Asset import settings for textures and meshes, chosen per platform by path filters.
- Listed in Global namespace: I to L
- Inherits or implements
ScriptableObject - Derived types
ImportSettings.Create - Nested types
CompressionSettings,Create,Filter,PlatformSettings,Scale,TextureType,Type
Constructors
| Member | What it is |
|---|---|
ImportSettings() | Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets. |
Fields
2 private and internal fields
| Member | What it is |
|---|---|
private ImportSettings.Filter[] filters | Path filters with their per-platform settings; later filters win. |
private static Dictionary<string, ImportSettings> settingsMap | Static cache of settings by path, only ever cleared here. |
Methods
| Member | What it is |
|---|---|
static void ClearMap() | Clears the cached settings map. |
ImportSettings.PlatformSettings Find(string assetPath, PlatformFlags runtime, ImportSettings.Type type) | Returns the settings for the asset path, type and platform from the last matching filter, or null. |
static ImportSettings GetSettings(string path) | Always returns null in this build. |
bool IsValid(PlatformFlags runtime) | True if any filter has settings for the given platform. |