Skip to content

+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 ​

public class SpriteLoadOption

cs
	public Vector2 pivot = new Vector2(0.5f, 0.5f);

	public bool bilinear;
	public Vector2Int? mipmap;
}