Files
Continentis/Assets/Scripts/SLSUtilities/General/SpriteExtension.cs
SoulliesOfficial d09b58fd80 架构大更
2026-03-20 11:56:50 -04:00

12 lines
296 B
C#

using UnityEngine;
namespace SLSFramework.General
{
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));
}
}
}