Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 555 Bytes

File metadata and controls

20 lines (15 loc) · 555 Bytes

Mod Resources Module

Mod Resources Module is a CoreLib submodule that organises mod resources and facilitates loading of assets

How to use the module:

This module does not require explicit loading.

Register your mod bundles

In your plugin EarlyInit() method write:

// Register bundles
var modInfo = GetModInfo(this);
ResourcesModule.RegisterBundles(modInfo);

At this point you can use to load any assets in your mod. For example:

var clip = ResourcesModule.LoadAsset<AudioClip>("Assets/myamazingmod/Music/myEpicMusic");