Files

12 lines
296 B
C#
Raw Permalink Normal View History

2025-10-23 00:49:44 -04:00
using UnityEngine;
2026-04-17 12:01:50 -04:00
namespace SLSUtilities.General
2025-10-23 00:49:44 -04:00
{
public static class SpriteExtension
{
public static Sprite Create(Texture2D texture)
{
return Sprite.Create(texture, new Rect(0, 0, texture.width, texture.height), new Vector2(0.5f, 0.5f));
}
}
}