+EA 23.345 Nightly - Plugin.BaseCore โ
September 15, 2026
5 files modified.
Important Changes โ
None.
IO โ
public static T LoadObject<T>(string _path, object option = null) where T : Unit
cs
if (typeFromHandle == typeof(Sprite))
{
SpriteLoadOption spriteLoadOption = option as SpriteLoadOption;
Texture2D texture2D = LoadPNG(_path);
Texture2D texture2D = ((spriteLoadOption == null || !spriteLoadOption.mipmap.HasValue) ? LoadPNG(_path) : ImageLoader.Load(_path, FilterMode.Point, spriteLoadOption.mipmap));
if (!texture2D)
{
return null;ImageLoader โ
public static class ImageLoader
cs
public static class ImageLoader
{
public static Texture2D LoadPNG(string _path, FilterMode filter = FilterMode.Point)
{
return Load(_path, filter, null);
}
public static Texture2D Load(string _path, FilterMode filter, Vector2Int? mipmap)
{
if (!File.Exists(_path))
{public static Texture2D LoadPNG(string _path, FilterMode filter = FilterMode.Poiโฆ)
cs
}
}
TextureImportSetting.Data data = (TextureImportSetting.Instance ? TextureImportSetting.Instance.data : IO.importSetting);
Texture2D texture2D = new Texture2D(width, height, data.format, data.mipmap, data.linear);
bool flag = mipmap.HasValue && (width > mipmap.Value.x || height > mipmap.Value.y);
Texture2D texture2D = new Texture2D(width, height, data.format, data.mipmap || flag, data.linear);
texture2D.LoadImage(array);
texture2D.wrapMode = data.wrapMode;
texture2D.filterMode = filter;
texture2D.filterMode = (flag ? FilterMode.Trilinear : filter);
texture2D.anisoLevel = data.anisoLevel;
texture2D.mipMapBias = data.mipmapBias;
return texture2D;ModItem โ
public T GetObject(object option = null)
cs
}
return cache;
}
if (option == null)
{
option = list.loadOption;
}
if (resourcePath != null)
{
return list.cache.Get(resourcePath, ResourceLoadType.Resource, option);ModItemList โ
public class ModItemList<T> where T : Object
cs
public int catLength;
public object loadOption;
public ModItemList(int _catLength = 0)
{
catLength = _catLength;
}
public ModItemList(int _catLength, object _loadOption)
: this(_catLength)
{
loadOption = _loadOption;
}
public string GetRandomID(string category = null)
{
if (list.Count == 0)SpriteLoadOption โ
cs
public Vector2 pivot = new Vector2(0.5f, 0.5f);
public bool bilinear;
public Vector2Int? mipmap;
}