Make a Whack a Mole Game in Unity (Free Tutorial)
Whether you’re whacking moles in real life or need to change out assets for projects deployed on multiple platforms, echo3D makes it easy to do this by simply using an API key and updating in 1 place. Assets are stored on the echo3D cloud and called at runtime so you can focus on other things. Like looking for mole hills.
Click this link https://go.echo3d.co/Dvxj or scan this QR code to see the celebrity mole in AR.
Don’t have an echo3D account? Register for FREE at echo3D.
Clone this repo, see the full README
Add the assets to the echo3D console from the Unity ‘Models’ folder
Uncheck the Security box in your console
In Unity, open the SampleScene scene
Drag the echo3D script to the Mole prefab in the Prefab folder
Add the API key and entry ID for each object in the Inspector
In the Hierarchy, make sure to the boxes are unchecked for the Sprite Renderer for Background
Adjust the metadata in the echo3D console so it matches the spawn points in the Hierarchy
Press Play in Unity. Click on the moles to whack them. You have 20 seconds.
Switch Out Assets
Find new asset in the echo3D console (You can upload your own or choose from our library)
Get the API key and entries ID
Swap them out on the echo3D script in the Unity Hierarchy and see your assets change when you run in Play mode
Refer to our documentation to learn more about how to use Unity and echo3D.
Feel free to reach out at support@echo3D.coor join our support channel on Slack.
Mole asset: freepik
Hammer and title: Canva
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.