CodeSmile AssetDatabase 1.9
Unity's AssetDatabase in enjoyable, consistent, concise, convenient, comprehensible, safe, documented form.
Loading...
Searching...
No Matches

◆ GetDefault() [2/2]

static Type GetDefault ( [NotNull] Path path)
static

Returns an asset's default importer type.

Parameters
pathPath to an asset file.
Returns
The type of the default importer for assets of this kind.
See also

Definition at line 173 of file Asset.Importer.cs.

174 {
175#if UNITY_2022_1_OR_NEWER
176 return AssetDatabase.GetDefaultImporter(path);
177#else
178 throw new NotSupportedException("GetDefaultImporter is not available in this Unity version");
179#endif
180 }