Example #1
0
        protected void DisplayModel(ModelViewData modelViewData)
        {
            GameObject assetMenuItemGameObject = GameObject.Instantiate(elementPrefab, menuParent);

            ModelBrowserElement modelBrowserElement = assetMenuItemGameObject.GetComponent <ModelBrowserElement> ();

            modelBrowserElement.SetData(modelViewData);
            modelBrowserElement.ClickedAction += OnElementClicked;
        }
Example #2
0
 protected void DisplayAttributionText(ModelViewData modelViewData)
 {
     //TODO: Fill
     attributionText.text = modelViewData.name + " by " + modelViewData.authorName;
 }
Example #3
0
        ///////////////////////////////////////////////////////////////////////////
        //
        // ModelBrowserElement Functions
        //

        public void SetData(ModelViewData viewData)
        {
            this.viewData    = viewData;
            rawImage.texture = viewData.thumbnailTexture;
        }
Example #4
0
        protected void DisplayAttributionText(ModelViewData modelViewData)
        {
            string text = string.Format("{0} by {1}", modelViewData.name, modelViewData.authorName);

            attributionText.text = text;
        }