LocalAssetLoader

Description: The LocalAssetLoader is a MonoBehaviour used to load an avatar. If it's placed on a GameObject, you can then call its Load() method to load that asset onto that GameObject.

While the LocalAssetLoader can be used directly, it's also common to subclass it, like so:

class MyAvatar : IMVU.LocalAssetLoader {
    void Start() {
        Imvu.Connect().Then(
            userModel => Load(userModel, Setup)
        ).Then(
            assetInfo => {
                // do stuff with the avatar
            }
        );
    }
}

Fields:

  • Promise<AssetInfo> assetPromise - This promise will be resolved when the asset has finished loading. This can be used to fetch the AssetInfo for an avatar that's already loaded.

Methods: