Open the sample project

We have Unity installed with Android build support, and we have a spinning cube running too slowly! We can now start to investigate what’s wrong.

  1. Open the project in Unity (if you haven’t already).

  2. Open the SampleScene scene by double-clicking the scene file from the Project tab:

Image Alt Text:Open the sample sceneFigure 1. Double-click the scene file to open the scene

We will see a really simple scene with just a few objects:

  • Main Camera
  • Directional Light
  • Cube

We haven’t made any modifications to the camera or the directional light but if you click on the Cube object, you will see that we have added a custom script called Spin.cs.

Image Alt Text:Spin component on the Cube objectFigure 2. Custom Spin component on the Cube object

As you can see, the Spin component looks very basic; it simply applies a rotation to the Cube every frame. The speed of which can be changed using the Rotation parameter.

In the next section, you will build the project and deploy it to your Android device. In a real-life case it is good practice to confirm which devices are being affected by which issues.

Back
Next