Creating the menu items

With the 3DTextPrefab selected in the Inspector, select Add Component and go to Physics 2D and select Box Collider 2D:

  1. Now, change the text of the TextMesh component to Start.
  2. Change the Name to StartBtn.
  3. Change the Character size to 4.
  4. Here is what yours might look like:
  1. Now, click on the Edit Collider button. You might notice an issue. If you did everything in the preceding order, your collider is much smaller than your word; this is a quick and easy fix:
  1. Click on the gear icon of the Box Collider component and click on Reset:

It is fixed now.

In your Hierarchy view, click and drag StartBtn down to your project view to create a unique prefab. Select StartBtn again in your Hierarchy view and press Crtl + D to duplicate StartBtn.

Rename the new button OptionsBtn. Now, click and drag OptionsBtn in the exact same way to create a prefab. Change the text of OptionsBtn to Options.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.220.136.165