Files
Cielonos/Assets/Scripts/SLSUtilities/General/SpriteExtension.cs

12 lines
296 B
C#
Raw Normal View History

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));
}
}
}