UNITY | Project | RPG Tutorial |23. Loading

2
Copy Component
3
Paste Component as Value
4
Adding Music
5
Adding Scene
6
“MenuControl” Script
  • add UnityEngine.SceneManagement to use Scene Manager
  • create a function, NewGame(),
    • add SceneManager.LoadScene()
    • when this function is activated, the scene 0 is loaded
7
UI – Button | On Click()
8
UI – Button | On Click()
9
Play On Awake
10
Adding Loading Screen with UI-RawImage
11
“MenuControl” Script
  • in NewGame(),
    • when the function is activated,
      • stop the music
      • turn on the loading screen
12
Adding Script
13
Loading Screen
14
Turn off Loading Screen
AC_44
Loading Screen Working

UNITY | Project | RPG Tutorial |22. Main Menu

2
New Scene | Plane
3
Creating Texture
4
Creating Plane | Adding Texture
  • create 2 planes as the background of Main Menu
  • make them stand towards Main Camera
5
Adding Logo to Plane | Shader
6
Texture Created Automatically
  • add logo image
  • after adding an image to Shader, the material is created automatically
7
Child Object
8
Rotating BackGround
  • rotate the background a little for the scene not to be seen though the logo
9
Lighting | Sky Box
10
Adding UI Text
11
Effects – Particle system
12
Adding Particle System
13
Creating UI Buttons
14
Creating Side Bar with UI Button
15
Side Bar
16
Creating UI Button
17
Creating Animation for Sliding Bar
18
Adding Animation
19
Animaiton | Wrap Mode
  • create a UI Button covering all the screen, but invisible
    • for “click anywhere to start”
20
“MenuControl” Script
  • create variables
    • for the empty gameObject, “menuSlider”
  • create a function, SlideMenu(),
    • when the function is activated, play the menu sliding animation

 

21
Adding Script
22
UI Button | On Click() | Adding Function
23
“MenuControl” Script
  • add variables,
    • for UIs to disappear after Side Menu appear
AC_28
Main Menu Working