Basketball Game
Come shoot some hoops and practice your free throw at Spatial Creator Court! Bring some friends and challenge each other to a friendly pick-up game.
This project is built with Visual Scripting. Features include:
- ⛹️ Grabbable/Shootable Ball: Visual Scripting graphs that allow a player to pick up an shoot a basketball. The ball bounces & rolls with real physics!
- 🏀 Ball Spawner: No ball hogs here! With the ball spawner, anyone can pop-in, grab a ball and practice their free throw. Once a ball is spawned/picked up, it will automatically disappear after 30 seconds to reduce memory load if many balls are spawned.
- 💯 Scoreboard: When you score, points are automatically tallied on the scoreboard, floating text appears above the basket, and a “swoosh!” sound is played. This logic is handled in a Visual Script graph attached to each basket. Reset the score using the Interactable below the scoreboard.
- 👽 Updated 3D & 2D Spatial Logos: Keep things fresh with Spatial’s latest logo refresh, both in 2D (center court) and 3D. There’s even a basic Visual Script that’s rotating the 3D logo above the scoreboard.
The follow free assets were used:
- 🏞️ Basketball Court Environment: Free download from Sketchfab by Stew004
- 🌅 Skybox: AI generated skybox, created using Blockade Labs’ free AI Skybox generation tool
Note
Make sure to import this Unity package into the Spatial Starter Template, or a Unity project that already has the Creator Toolkit dependencies installed.
Try it Out
To try out this template:
- Download the code using the Download Project button
- Import the package into a new Unity project
- Follow the steps at Creating a Package to set up the configuration for your package type
- Test the package in your sandbox