Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


ScriptedImporterAttribute

Class attribute used to register a custom asset importer derived from ScriptedImporter with Unity's Asset import pipeline.
Read time 4 minutesLast updated 10 days ago

Definition

[AttributeUsage(AttributeTargets.Class, Inherited = false)]public class ScriptedImporterAttribute : Attribute

Examples

using UnityEngine;using UnityEditor.AssetImporters;[ScriptedImporter(version: 1, ext: "sphere", AllowCaching = true)]public class SphereImporter : ScriptedImporter{ public override void OnImportAsset(AssetImportContext ctx) { // ... }}

Fields

Value

Description

AllowCachingEnable cache server uploads and downloads.

Constructors

Constructor

Description

ScriptedImporterAttribute(System.Int32,System.String)Use the ScriptedImporter attribute to register a custom importer derived from ScriptedImporter with Unity's Asset import pipeline.
ScriptedImporterAttribute(System.Int32,System.String,System.Int32)Use the ScriptedImporter attribute to register a custom importer derived from ScriptedImporter with Unity's Asset import pipeline.
ScriptedImporterAttribute(System.Int32,System.String[])Use the ScriptedImporter attribute to register a custom importer derived from ScriptedImporter with Unity's Asset import pipeline.
ScriptedImporterAttribute(System.Int32,System.String[],System.Int32)Use the ScriptedImporter attribute to register a custom importer derived from ScriptedImporter with Unity's Asset import pipeline.
ScriptedImporterAttribute(System.Int32,System.String[],System.String[])Use the ScriptedImporter attribute to register a custom importer derived from ScriptedImporter with Unity's Asset import pipeline.
ScriptedImporterAttribute(System.Int32,System.String[],System.String[],System.Int32)Use the ScriptedImporter attribute to register a custom importer derived from ScriptedImporter with Unity's Asset import pipeline.

Properties

Property

Description

fileExtensionsThe list of file name extensions that this scripted importer should handle.
importQueuePriorityEnables controlling the ordering of asset import based on type. Positive values delay the processing of source asset files while negative values place them earlier in the import process.
overrideFileExtensionsList of file name extensions (not including the leading period character) that the scripted importer can handle in addition to the default file name extension(s).
versionImporter version number used by the import layer to detect a new version of the importer.

Inheritance

Inherited Members