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

◆ GetActive() [6/6]

static Type[] GetActive ( ReadOnlySpan< GUID > guids)
static

Gets the active AssetImporter types used for the given assets.

Available in Unity 2022.2 or newer. Throws NotSupportedException in earlier versions.

Parameters
guidsGUIDs to asset files.
Returns
The AssetImporter types in use for the specified assets.
See also

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

125 {
126#if UNITY_2022_2_OR_NEWER
127 return AssetDatabase.GetImporterTypes(guids);
128#else
129 UnityEngine.Debug.LogWarning("GetImporterTypes not available in this Unity version - returning empty array");
130 return new Type[0];
131#endif
132 }