Using the SDK
Learn how to use our Unity SDK.
Let's start with something simple.
- 1.Open the
Prefabsfolder within the
echo3D Unity SDKpackage folder and add the
Echo3DServiceprefab to any scene where you wish to load holograms.
2. Add the
Echo3DHologramprefab from the same folder to your scene.
This is an empty game object with the
Echo3DHologram.csscript attached to it.
You can also simply add the
Echo3DHologram.csscript to any existing game object.
Entry IDcan be found in your console:
6. Go back to Unity and hit the Play button.
The SDK will stream the 3D model into Unity.
All done! 🎉
Here's a tutorial that can guide you through the steps shown above:
The SDK includes a robust demo scene preconfigured to load holograms (models, images, and videos) from our platform. Follow these steps to run the scene:
- 1.In the top menu, click
Unity Package Manager.
- 2.Add the scene to your project by importing the package samples via the Unity Package Manager. Under
Packages - echo3Dselect
echo3D Unity SDKand click Import on the right side of the screen.
Samplesfolder will be created within your project
Assetsfolder. Open the
3. Press "Play" to run the demo scene. Holograms will stream and instantiate within the scene. Note: An internet connection is required.
All done! 🎉