Build & Manage a Grocery Store Scene From the Cloud in Unity (Tutorial)
Tags: tutorial, unity3d, gamedev, csharp
Published: 2022-08-22 23:53:09

Whether you’re building a 2D or 3D game, [echo3D](http://www.echo3d.co) can host any asset of nearly any size on the cloud! This is especially convenient for the game that gets updated regularly, rapid prototyping or for a AAA title that needs a reliable backend to do the heavy lifting. Swapping out assets in real time can make games more engaging and streamline updates — players will come back and 
see what changed. Save on time, effort, space and cost. No need to rebuild the app and update downloads — the assets can be swapped out remotely.

In this tutorial, we import 2 separate assets from the echo3D cloud: Monty’s monster market and a milk jug.

![](https://miro.medium.com/max/1200/1*uf_b9ORm4YIr6KPETIXCPA.gif)

Register
========

Don’t have an API key? Make sure to register for FREE at [echo3D](https://console.echo3d.co/#/auth/register).

Scan this QR code or click this link [**https://go.echo3d.co/Abqx**](https://go.echo3d.co/Abqx) to see this for yourself!

![](https://miro.medium.com/max/1400/1*tXdZ5hCjQxfa90LjRD5Fmg.png)

Version
=======

Unity 2020.3.25 LTS

Video
=====

{% youtube GxxCmeWahe4 %}


Setup
=====

*   Clone the [repo](https://github.com/echo3Dco/Unity-echo3D-Demo-3DUI).
*   Install the echo3D [Unity SDK](https://docs.echo3d.co/unity/installation).
*   Download the 3D model(s) from the Assets/Models folder in the project: MilkJug and GroceryStore.
*   Go to echo3D console and [click “Add to Cloud”](https://docs.echo3d.co/quickstart/add-a-3d-model) and upload the models.
*   Open the “SampleScene” scene.
*   [Uncheck the Security](https://docs.echo3d.co/web-console/deliver-pages/security-page) box in your console or [add the echo3D API key](https://docs.echo3d.co/web-console/deliver-pages/security-page) and entry IDs to the echo3D.cs script so the objects can appear in Unity.
*   [Set the API key](https://docs.echo3d.co/quickstart/access-the-console) on the echo3D script using the Inspector for the “MilkJug” and “Market” objects in the Hierarchy

![](https://miro.medium.com/max/1400/1*0Z_JDVXFCJNPaE9CkL18BA.png)![](https://miro.medium.com/max/664/1*LIJnwnUcRyRt4Eskmb6QyQ.png)

*   [Add the metadata](https://docs.echo3d.co/web-console/manage-pages/data-page/how-to-add-data#adding-metadata) for the “MilkJug.glb” object in the echo3D console. Try these:
    x: .5, z: -.5, scale: .04

Run
===

Press Play in Unity to see the 3D assets materialize.

Switch Out Assets (Optional)
============================

If you want to switch out your assets remotely through the echo3D cloud, here’s how.

*   Find new asset in the echo3D console (You can upload your own or choose from our library)

![](https://miro.medium.com/max/1200/0*pQ43xpPJUBfv80WX)

*   Get the API key and entries ID

![](https://miro.medium.com/max/1400/0*ivkt8_slPamery-H)

*   Swap them out on the echo3D script in the Unity Hierarchy and see your assets change when you run in Play mode

Learn More
==========

Refer to our [documentation](https://docs.echo3d.co/unity/) to learn more about how to use Unity and echo3D.

Support
=======

Feel free to reach out at support@echo3D.co or join our [support channel on Slack](https://go.echo3d.co/join). Share yours with us! We’d love to share it. Send it to Bebe@echo3d.co.

More Tutorials
==============

To learn how to make other similar projects, try one of these:

*   [Get a Quarantine Dog…in AR! (No Code and Free)](https://medium.com/echo3d/get-a-quarantine-dog-in-ar-8383ea55376b)
*   [Quick and Easy AR Retail Apps with echo3D!](https://medium.com/echo3d/quick-and-easy-ar-retail-apps-with-echo3d-12640e21e5d9)
*   [Build a 3D Balloon Pop game in Unity](https://medium.com/echo3d/build-a-balloon-pop-game-unity-free-eed9fe7d8be9)
*   [How to Create 3D Content and See It In AR \*(No Code and Free)](https://medium.com/echo3d/how-to-create-3d-content-and-see-it-in-ar-free-no-coding-required-369e5b4a4b3e)

***

>_**echo3D** ([www.echo3D.co](http://www.echo3d.co/); Techstars 19’) is a cloud platform for 3D/AR/VR that provides tools and network infrastructure to help developers & companies quickly build and deploy 3D apps, games, and content._

![](https://miro.medium.com/max/1400/0*op1xkiLHRuzINEd6)