ModExtraAssets is no longer getting updated for classic. However, since 2024 there's a MEA Revamped version that fits BepInEx moddding BB+ perfectly!
void FindAllDBLoad<T>(string pathFolder, string extention, MonoBehaviour that)
Used to load <Type of asset> under following folder to database to use those for later
using System;
using UnityEngine;
public class Example : MonoBehaviour
{
private void Start()
{
// Load all assets with ".wav" extension to database from the ModExtraAssets/Audio folder
ModExtraAssets.FindAllDBLoad<AudioClip>(ModExtraAssets.GetSubDirectory("Audio"), "wav", this);
}
}