Skip to content
This repository was archived by the owner on Mar 7, 2025. It is now read-only.

Commit

Permalink
test: ScriptedImporter extension
Browse files Browse the repository at this point in the history
  • Loading branch information
dunward committed May 3, 2020
1 parent e7c6b46 commit 041a5b4
Show file tree
Hide file tree
Showing 7 changed files with 43 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Assets/AsepriteAnimator/Scripts/AsepriteImporter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
using UnityEditor.Experimental.AssetImporters;
using UnityEngine;

[ScriptedImporter(1, new string[] { "ase", "aseprite" })]
public class AsepriteImporter : ScriptedImporter
{
public override void OnImportAsset(AssetImportContext ctx)
{
throw new System.NotImplementedException();

}
}
}
15 changes: 15 additions & 0 deletions Assets/AsepriteAnimator/Scripts/Editor/AsepriteImporterEditor.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
using System.Collections;
using System.Collections.Generic;
using UnityEditor;
using UnityEditor.Experimental.AssetImporters;
using UnityEngine;

[CustomEditor(typeof(AsepriteImporter))]
public class AsepriteImporterEditor : ScriptedImporterEditor
{
public override void OnInspectorGUI()
{
EditorGUILayout.LabelField("TEST");
base.OnInspectorGUI();
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added Assets/AsepriteAnimator/adventurer.ase
Binary file not shown.
7 changes: 7 additions & 0 deletions Assets/AsepriteAnimator/adventurer.ase.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added Assets/AsepriteAnimator/adventurer.aseprite
Binary file not shown.
7 changes: 7 additions & 0 deletions Assets/AsepriteAnimator/adventurer.aseprite.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 041a5b4

Please sign in to comment.