A small helpful API that loads Assets or Textures from your mod folder
Get a reference to Main UI Font as TMP_FontAsset
TMP_FontAsset
You can use this to load your custom asset bundle made in unity.
AssetBundle ab = DVModAssets.LoadAssetBundle(modEntry, "myassetbundle.unity3d"); //(...) load some stuff from asset bundle ab.Unload(false);
If you have file inside a folder just use Path.Combine()
Path.Combine()
AssetBundle ab = DVModAssets.LoadAssetBundle(modEntry, Path.Combine("Some Folder","myassetbundle.unity3d"));
You can use this to load *.png file (from your mod folder) as Texture2D file.
Texture2D tex = DVModAssets.LoadTexture(modEntry, "myTexture.png");
There was an error while loading. Please reload this page.