Class SpriteLibrarySourceAssetImporter
A ScriptedImporter that imports .spriteLib extension file to generate SpriteLibraryAsset
Inherited Members
Namespace: UnityEditor .U2D.Animation
Assembly: Unity.2D.Animation.Editor.dll
Syntax
[HelpURL("https://docs.unity3d.com/Packages/com.unity.2d.animation@9.0/manual/SL-Asset.html")]
[ScriptedImporter(22100000, "spriteLib", AllowCaching = true)]
public class SpriteLibrarySourceAssetImporter : ScriptedImporter
Methods
OnImportAsset(AssetImportContext)
Implementation of ScriptedImporter.OnImportAsset
Declaration
public override void OnImportAsset(AssetImportContext ctx)
Parameters
Type | Name | Description |
---|---|---|
Asset |
ctx | This argument contains all the contextual information needed to process the import event and is also used by the custom importer to store the resulting Unity Asset. |