特效处理
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
|
||||
public class AtlasImporter : AssetPostprocessor
|
||||
{
|
||||
void OnPreprocessAsset()
|
||||
{
|
||||
if (assetPath.EndsWith(".atlas"))
|
||||
{
|
||||
var text = System.IO.File.ReadAllText(assetPath);
|
||||
var textAsset = new TextAsset(text);
|
||||
AssetDatabase.CreateAsset(textAsset, assetPath + ".asset");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user