2025-11-25 08:19:33 -05:00
|
|
|
using UnityEngine;
|
|
|
|
|
|
2026-02-13 09:22:11 -05:00
|
|
|
namespace SLSUtilities.General
|
2025-11-25 08:19:33 -05: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));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|