Skip to content

echo3Dco/Unity-WebGL-echo3D-demo-Aquarium

Repository files navigation

Unity-WebGL-echo3D-Demo-Aquarium

This digital "Equarium" loads its decorations and fish at runtime using the echo3D API. The echo3D platform allows the app to select and display multitudes of different fish types without requiring any asset bundling or inclusion in the app build itself. New critters can be added by uploading to your echo3D project without increasing the app footprint. Because fish are randomly selected, scaled and textured, no two aquariums will ever be exactly the same!

See it Live

The built WebGL application is available to preview via github pages. Check out https://echo3dco.github.io/Unity-WebGL-echo3D-demo-Aquarium/ to load the aquarium. Allow a few minutes for the application to stream and load assets. When it is complete, it will prompt you to press any key to unveil the aquarium.

Setup

  • Built with Unity 2021.3.16f1
  • Register for FREE at echo3D.
  • To view a completed demo project that only requires the echo3D API key & entry ID, clone this repo. The echo3D Unity SDK is aleady included in the project.

Steps

  • Add these models to the echo3D console from the Models/Critters folder. Add these models to 1 project in the echo3D console. This project will have its own project key.

  • Add these models to the echo3D console from the Models/Decor folder. Add these models to another project in the echo3D console. This project will have its own project key.

  • Open the Equarium scene.

  • Set the API key and entryIDs for each project, static models and the hammerhead shark in the Global.cs script found in Assets/Scripts.
    APIKey
    EntryID

  • If you have your secret key enabled, add the security key for each project to the Global.cs script as well.

Run

Run the editor or build the WebGL app. Within a browser sounds will not play until you interact with the window. Increase the music volume with "P" and decrease with "L". Reload the page / re-run the editor app to load different fish and try to see them all!

Learn More

Refer to our documentation to learn more about how to use Unity and echo3D.

Troubleshooting

Due to browser limitations with WebGL and websockets, models loaded via this app will not respond to changes in metadata made via the echo3D platform (Scale, rotation etc). Refreshing the app will refetch models with reflected changes.

Visit our troubleshooting guide here.

Support

Feel free to reach out at support@echo3D.co or join our support channel on Slack.

Credits

A big thanks to mdsn and their terrific aquarium gurgle sound.

This demo implements features or assets from the following Unity Asset Store packages:

Screenshots

Aquarium
ezgif com-gif-maker

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published