temporarily disabled HoverIndicator

This commit is contained in:
j-weissen 2022-06-03 14:59:05 +02:00
parent 74941ea9ae
commit 412ef07a75
2 changed files with 5 additions and 7 deletions

View file

@ -37,7 +37,7 @@ namespace Tiles
static protected Sprite GenerateSpriteFromFile(String pathToImageFile)
{
byte[] data = System.IO.File.ReadAllBytes(pathToImageFile);
byte[] data = File.ReadAllBytes(pathToImageFile);
Texture2D texture = new Texture2D(32, 32, TextureFormat.ARGB32, false);
texture.LoadImage(data);
Sprite sprite = Sprite.Create(texture, new Rect(0.0f, 0.0f, texture.width, texture.height), new Vector2(0.5f, 0.5f), 32);