Back to Templates
Basketball Game

by Spatial

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.

Game Template

Visual Scripting

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.

Basketball game sample 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:

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.