Tuesday, 11 April 2023

Backgrounds: how to add it

 Do you know how  to add a background to your game/app in Unity?


Lets look how...



- Drag your image background to the "Hierarchy" window

- Select your new added background

- GO to Inspector

- Select "ADDITIONAL SETTINGS" - "SORTING LAYER"

- CLICK "ADD SOTRING LAYER"

- Add a layer with name  "Background". 

This shows you a "TAGS & LAYERS" menu where you must put your background layer on TOP of the list.



Variables between scripts

 If we want to access one variable (int data) from an external script, we must do: 1-ORIGINAL ONE.cs     public static int data = 0 ;  2-...