version
Importer version number used by the import layer to detect a new version of the importer.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Property
- Namespace: UnityEditor.AssetImporters
- Assembly: UnityEditor.CoreModule
public int version { get; }
Remarks
The import layer uses this version number to trigger re-imports when there is a new version and apply the latest changes made to the scripted importer.
Examples
using UnityEngine;using UnityEditor.AssetImporters;[ScriptedImporter(1, "sphere")]public class SphereImporter : ScriptedImporter{ public override void OnImportAsset(AssetImportContext ctx) { // ... }}