Version: 2020.1
言語: 日本語
Experimental: this API is experimental and might be changed or removed in the future.

ScriptedImporterAttribute.version

マニュアルに切り替える
public int version ;

説明

Importer version number that is used by the import layer to detect new version of the importer and trigger re-imports when such events occur, to apply latest changes made to the scripted imrpoter.

using UnityEngine;
using UnityEditor.Experimental.AssetImporters;

[ScriptedImporter(1, "sphere")] public class SphereImporter : ScriptedImporter { public override void OnImportAsset(AssetImportContext ctx) { // ... } }