• Register now to get access to thousands of Tutorials, Leaked content, Hot NSFW and much more. Join us as we build and grow the community.

Advertise Here

Advertise Here

Advertise Here

Creating Gameplay UI and Animations

mdxy

Incident Responder
M Rep
0
0
0
Rep
0
M Vouches
0
0
0
Vouches
0
Posts
141
Likes
129
Bits
2 MONTHS
2 2 MONTHS OF SERVICE
LEVEL 2 1000 XP
Operating System

Android

Creating Gameplay UI

Create a UI Image by going in the menu clicking the GameObject , and UI then select Image. Rename the Canvas as Gameplay UI and set the component values as show in the image below.
21_2.png


After that rename the image as Background and locate it sprite in the Sprites folder.
22_1.png


After setting up the Background, we will create a prompt that will appear when the user is trying to quit the game. To do that creates another UI Image then rename it as Notification. And set its component values as show in the image.
23_2.png


After that create child object UI Text and set its component as show below.
24_1.png

Creating Animation

Notification Animation

First select the Notification then add an Animator Controller in the Inspector.
  1. Open the Animation Pane.
  2. Click Create New Clip name it as NotificationFade, and save it in the Animations folder.
  3. Set the Animation to 1 sec to 3 sec and set its component as show below.
    25_1.png

    26_1.png

  4. Click Play to animate the sprite.

Camera Animation

Now that we’re done with the Notification we will now animate the Camera similar on what we did on the Notification.

First select the Main Camera then add an Animator Controller in the Inspector:
  1. Open the Animation Pane.
  2. Click Create New Clip name it as CameraMovement, and save it in the Animations folder.
  3. Set the delay to 0.30 and also set the Camera size to 4.
    27_1.png

  4. Click Play to animate.
  5. Set Animator Controller to none because we will trigger it within the script.

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. After downloading it, you will need a program like Winzip to decompress it.

Virus note: All files are scanned once-a-day by SourceCodester.com for viruses, but new viruses come out every day, so no prevention program can catch 100% of them.

FOR YOUR OWN SAFETY, PLEASE:

1. Re-scan downloaded files using your personal virus checker before using it.

2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.


Download
You must upgrade your account or reply in the thread to view the hidden content.
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

452,501

351,349

351,363

Top