O'Reilly logo

HoloLens Beginner’s Guide by Jason Odom

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

GameBall Prefab

The final object we need to make our game an actual game is our ball. In this section, we will create a sphere, add a couple of classes and a rigid body, apply a material, and then turn the object into a Prefab. This will be short and sweet. Let's follow the given steps:

  1. Start off by creating a sphere and ensuring that it is not a child of anything in the Hierarchy view.
  2. Rename the sphere to GameBall.
  3. Set its Position to 0,0,0 and its Scale to 0.07,0.07,0.07:
  1. In the Project view, right-click on the Materials folder. Click on Create and then click on Material.
  2. Name the new material GameBall and set the Albedo RGB values to ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required