I've been following MacGruber's guide
Unity AssetBundles for VaM
and I have created an AssetBundle that contains a custom .otf font. Now I want to load the AssetBundle back but I can't.
Error log
"The name `AssetBundle' does not exist in the current context"
I can't figure out what's wrong. Am I missing a namespace?
Unity AssetBundles for VaM
and I have created an AssetBundle that contains a custom .otf font. Now I want to load the AssetBundle back but I can't.
Code:
using UnityEngine;
public override void Init()
{
// https://docs.unity3d.com/ScriptReference/AssetBundle.LoadFromFile.html
var myLoadedAssetBundle = AssetBundle.LoadFromFile(assetbundle_path);
}
Error log
"The name `AssetBundle' does not exist in the current context"
I can't figure out what's wrong. Am I missing a namespace?