Skip to content

MistressPlague/AssetBundleLib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AssetBundleLib

A Simple Library For Asset Loading

Example

if (new AssetBundleLib() is var Bundle && Bundle.LoadBundle("YourNameSpace.ResourcesOrFolderName.FileNameOfEmbeddedResource.asset")) // This If Also Checks If It Successfully Loaded As To Prevent Further Exceptions
{
    var AssetObj = Bundle.Load<Sprite>("InternalAssetBundleAssetName");
}
else
{
    MelonLogger.Error($"Failed Loading Bundle: {Bundle.error}");
}