UNITY TUTORIAL | PROJECT | SPACE SHOOTER |14. Counting Points and Score

2
Creating Canvas & UI Text
3
Changing “Anchor” of UI Text
4
Changing “Anchor” to “Top-Left”
11
adding codes to “Game Controller” script
12
adding Text UI to “Game Controller” script as a reference
13
Adding Codes to “DestroyByContact” script | making a reference of “Game Controller” to use “AddScore” Function
14
setting Score Value in Asteroid Prefab
5
Creating “Game Score” Script

ezgif.com-video-to-gif-2

Another way of setting Score UI

6
Game Score Script
7
Adding “Game Score” script to Text UI
8
Tagging UI
9
adding codes to increment score after destroying a hazard

 

UNITY TUTORIAL | UI | 1. UI Canvas

2
creating UI
3
Canvas is created automatically when UI elements are created
4
Canvas Render Mode | Screen Space – Overlay
3
Canvas Render Mode | Screen Space OverLay | UI automatic resizing
5
Pixel Perfect
6
Canvas Render Mode | Screen Space – Camera
5
Canvas Render Mode | Screen Space – Camera | Filling Camera’s View Port
5-1
Canvas Render Mode | Screen Space – Camera |beloing to Frustum
72.png
Canvas Render Mode | World Space
8
Canvas Sorting Layer | Orde in Layer