Skip to main content

ImportSettings

A class in Root.Township, the global namespace.

Asset import settings for textures and meshes, chosen per platform by path filters.

Constructors​

MemberWhat it is
ImportSettings()Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets.

Fields​

2 private and internal fields
MemberWhat it is
private ImportSettings.Filter[] filtersPath filters with their per-platform settings; later filters win.
private static Dictionary<string, ImportSettings> settingsMapStatic cache of settings by path, only ever cleared here.

Methods​

MemberWhat 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.