From the course: AR Development Techniques 04: Advanced Techniques

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

AR shooting game, part 4

AR shooting game, part 4

From the course: AR Development Techniques 04: Advanced Techniques

Start my 1-month free trial

AR shooting game, part 4

- [Instructor] In this video, we'll add the shoot functionality to our game. First, let's create the UI. For that, we'll import two images. One is the shoot button, and the other one is the crosshair. So let's create a folder, right click, create folder, and I'll name this UI. Open the folder. And let's add these three images in the folder. Now let's create a canvas. Right-click, UI, canvas, change the UI scale mode to scale with screen size. Let's create a button inside the canvas. Right-click, UI, button. And I'll name this "ShootButton." Let's delete the text. And I'll make this 100 by 100. Change the position to 335 and minus 130. And let's add the shoot image to this button. So for that, I have to change the texture type to sprite UI, apply. Drag this sprite right here, and the shoot button is ready. Let's anchor this at bottom right. Now let's create the crosshair from where the Raycast…

Contents