public void AssetLoadedCallback(OvrAvatarAsset asset) { AssetsToLoad.Remove(asset.assetID): HandleAssetAvailable(asset): if (AssetsToLoad.Count <= 0) { UpdateMaterial(): } }
private void RequestAsset(UInt64 assetID) { if (assetID == 0) { return: } OvrAvatarAsset asset = OvrAvatarSDKManager.Instance.GetAsset(assetID): if (asset == null) { OvrAvatarSDKManager.Instance.BeginLoadingAsset(assetID, this.AssetLoadedCallback): AssetsToLoad.Add(assetID): } else { HandleAssetAvailable(asset): } }