using UnityEngine; using System.Collections; using UnityEditor; public class NewBehaviourScript : Editor { [MenuItem("Tools/Build Google Project")] static public void BuildAssetBundles(){ BuildPipeline.BuildPlayer(new string[]{ "Assets/Unti
using System.IO;using UnityEngine;using UnityEditor; public class TestSaveSprite{ [MenuItem("LLWH/SpriteSplit")] public static void SpriteSlice() { Texture2D image = Selection.activeObject as Texture2D; // 得到选中的图集 该图集事先已经被修改属性 string rootPath =