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

UNITY | PROJECT | RPG Project |17.Mini Map, SkyBox, & Money Saving

2
Creating MiniMap
3
Creating MiniMap
  • Create MiniMap by using UI-RawImage
49.png
Adding Camera to MiniMap
5
Creating “RenderTexture”
6
Adding Texture to MiniMap
  • the result image from Camera to RenderTexture by adding it to Target Texture
  • add the RenderTexture to MiniMap
7-1
MiniMap Working
7
Add Pointer on MiniMap
8
Windows – Rendering – Lighting Settings
96-e1536540831896.png
Adding SkyBox
11
SkyBox Applied

12

13
UI for Gold
142.png
“GloblaCash” Script
  • create variables for
    • gold as static
    • gold as internal path
    • UI
  • in Update() method,
    • making Gold variables global
    • put the gold information to UI
15
“QuestComplete” Script
  • add a line of code to get 100 gold when completing quest
15-1
Obtaining Gold
17
“SaveGold” Script
  • in Start() method,
    • make this script load the amount of gold saved when the games starts by using PlayerPrefs.GetInt()
16
“QuestComplete” Script
  • after obtaining gold, update the save file for gold by using PlayerPrefs.SetInt()

181.png

AC_12
Gold Loading Working
  • after Quest complete, when we start the game again, the gold obtained last time is saved in SaveGold