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

◆ SetOverride< T >()

static void SetOverride< T > ( [NotNull] Path path)
static

Sets the custom AssetImporter to use for the specified asset.

Parameters
pathPath to an asset file.
Template Parameters
TType derived from AssetImporter. Note: in Unity 2021.3 T is ScriptedImporter.
See also
Type Constraints
T :UnityEditor.AssetImporters.ScriptedImporter 

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

234 : AssetImporter
235#else
236 where T : UnityEditor.AssetImporters.ScriptedImporter
237#endif
238 {
239 AssetDatabase.SetImporterOverride<T>(path);
240 }