DEV Community

Cover image for “Adopt A Pet” in 3D — Swap Out Assets in Real Time in Unity
echo3D for echo3D

Posted on

“Adopt A Pet” in 3D — Swap Out Assets in Real Time in Unity

Swap out assets in real time in Unity! Here we simulated a virtual pet adoption. Adopt a dog or cat (or both) from the animal shelter. All you have to do is change the entry ID of each asset (cat or dog) for them to appear.

Register

Don’t have an echo3D account? Register for FREE at echo3D.

Video Tutorial

Follow along with the video here


Setup

  • Open the SampleScene in Unity
  • Drag the echo3D_Animal and echo3D_Kennel prefabs into the Hierarchy
  • Add the API key and entries ID on the echo3D object in the Hierarchy using the the Inspector. Swap them out between Play Modes to see them change in real time.
  • Play in Unity to see the asset materials in real time from the echo3D console

Learn more

Refer to our documentation 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. For additional troubleshooting, debug here.

Screenshots

For more easy tutorials, check these out:


echo3D (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.

Top comments (1)

Collapse
 
zakailuie profile image
ZakaiLuie

Write scripts to handle the swapping of assets in real-time. You can use Unity's scripting capabilities (C# or UnityScript) to create scripts for website that dynamically change the appearance of the pets based on user input or other triggers.