根据图片路径加载sprite
Sprite LoadSpriteByPath(string path)通过文件流读取路径中的图片,texture2D.LoadImage(字节缓存)加载图片,Sprite.Create(texture2D,new Rect(起始点,起始点,宽度,高度),new Vector2(中心点,中心点));
获取当前本地所有的识别图,结合Dictionary<string,string>GetAllImagesFiles(string path)获取路径和加载图片方法
根据图片路径加载sprite
Sprite LoadSpriteByPath(string path)通过文件流读取路径中的图片,texture2D.LoadImage(字节缓存)加载图片,Sprite.Create(texture2D,new Rect(起始点,起始点,宽度,高度),new Vector2(中心点,中心点));
获取当前本地所有的识别图,结合Dictionary<string,string>GetAllImagesFiles(string path)获取路径和加载图片方法