Version: 2017.3
Experimental: this API is experimental and might be changed or removed in the future.

ScriptedImporterAttribute.version

Cambiar al Manual
public int version ;

Descripción

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) { // ... } }