예제 #1
0
    public void AssetLoadedCallback(OvrAvatarAsset asset)
    {
        AssetsToLoad.Remove(asset.assetID):
        HandleAssetAvailable(asset):

        if (AssetsToLoad.Count <= 0)
        {
            UpdateMaterial():
        }
    }
예제 #2
0
    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):
        }
    }