//Updates view object from model object
 protected void Update(ModelViewData modelViewData, PolyAssetData polyAssetData)
 {
     modelViewData.ID               = polyAssetData.polyAsset.name;
     modelViewData.name             = polyAssetData.polyAsset.displayName;
     modelViewData.authorName       = polyAssetData.polyAsset.authorName;
     modelViewData.thumbnailTexture = polyAssetData.polyAsset.thumbnailTexture;
 }
        protected void OnPolyThumbnailsFetched(List <PolyAsset> assets)
        {
            if (assets == null)
            {
                return;
            }

            List <ModelViewData> modelViewDataList = new List <ModelViewData> ();

            for (int i = 0; i < assets.Count; i++)
            {
                PolyAssetData polyAssetData = new PolyAssetData(assets [i]);
                ModelViewData modelViewData = Convert(polyAssetData);
                modelViewDataList.Add(modelViewData);
            }
            modelBrowser.DisplayModels(modelViewDataList);
        }
        ////////////////////////////////////////
        //
        // Poly Model To View Conversion

        //Converts model object to view object
        protected ModelViewData Convert(PolyAssetData polyAssetData)
        {
            string id = GetModelViewDataID(polyAssetData);

            ModelViewData modelViewData = null;

            if (modelViewDataDictionary.ContainsKey(id))
            {
                modelViewData = modelViewDataDictionary [id];
            }
            else
            {
                modelViewData = new ModelViewData();
                modelViewDataDictionary.Add(id, modelViewData);
            }

            Update(modelViewData, polyAssetData);

            return(modelViewData);
        }
 //Gets a unique ID from a PolyAssetData object
 protected string GetModelViewDataID(PolyAssetData polyAssetData)
 {
     return(polyAssetData.polyAsset.name);
 }