Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:06,656 --> 00:00:12,800
Believe in tonight guys v main
2
00:00:13,056 --> 00:00:16,896
You is actually very similar to what we experience
3
00:00:17,152 --> 00:00:23,040
With the demo enter it's just going to be an image with a logo in the Mechanics you little buttons
4
00:00:23,296 --> 00:00:29,440
Now obviously guys you can go as complicated as you want when creating a main menu can make it half animations and
5
00:00:29,696 --> 00:00:33,280
For the purposes of this demo for this tutorial
6
00:00:33,536 --> 00:00:34,816
We're going to make sure
7
00:00:35,072 --> 00:00:41,216
That we just cover the basics and then you guys can extend it polishing have fun with him
8
00:00:41,728 --> 00:00:43,008
How to create a new scene
9
00:00:45,056 --> 00:00:46,848
I'm going to call this mean
10
00:00:48,384 --> 00:00:48,896
Ok
11
00:00:49,152 --> 00:00:50,176
Let's have a good time
12
00:00:50,944 --> 00:00:51,712
Opening
13
00:00:52,480 --> 00:00:54,528
And now we need to actually create
14
00:00:55,808 --> 00:00:57,344
A PSB file
15
00:00:57,600 --> 00:00:59,392
With a logo in a background image
16
00:00:59,904 --> 00:01:00,653
At 40
17
00:01:00,655 --> 00:01:03,003
Subtitled by
-♪ online-courses.club ♪-
We compress knowledge for you!
https://t.me/joinchat/ailxpXoW3JVjYzQ1
18
00:01:03,004 --> 00:01:03,488
And at 3840 by 2160
19
00:01:04,000 --> 00:01:06,816
So what I'm going to do is I'm actually going to open up 2nd car
20
00:01:07,072 --> 00:01:07,840
Recreate
21
00:01:08,096 --> 00:01:11,424
Can I just get a save this as main menu
22
00:01:15,008 --> 00:01:17,312
And I wanted to be a large document format
23
00:01:17,824 --> 00:01:20,896
Data PSB file Photoshop big file
24
00:01:21,152 --> 00:01:22,688
Animal quick save
25
00:01:23,968 --> 00:01:25,504
Ok here
26
00:01:27,040 --> 00:01:28,064
I'm going to delete
27
00:01:28,320 --> 00:01:29,344
All the stuff
28
00:01:30,368 --> 00:01:31,392
From my previous tutorial
29
00:01:31,648 --> 00:01:33,184
So we have a blank canvas here
30
00:01:34,720 --> 00:01:37,280
And then I'm going to go ahead in actually just
31
00:01:39,072 --> 00:01:40,096
What I like to do
32
00:01:40,608 --> 00:01:41,888
Especially when I'm in a rush
33
00:01:42,144 --> 00:01:43,168
I like to take
34
00:01:43,424 --> 00:01:46,240
Previous images of screenshots from the game
35
00:01:46,496 --> 00:01:49,312
Pays them in this is a really quick trick here
36
00:01:49,568 --> 00:01:55,712
Penstemon and what I do is I just blurred them like crazy so big to a big huge blurry
37
00:01:56,224 --> 00:01:56,992
Gothenburg
38
00:01:57,248 --> 00:02:00,064
Until we get this beautiful abstract look
39
00:02:00,320 --> 00:02:01,856
With all of the colours
40
00:02:02,624 --> 00:02:03,392
From our
41
00:02:03,648 --> 00:02:04,928
From our
42
00:02:05,440 --> 00:02:06,208
First level
43
00:02:06,720 --> 00:02:08,512
And then I was gonna crap this so
44
00:02:08,768 --> 00:02:13,376
Control a war Commander if you're on a Mac to select the whole canvas
45
00:02:13,888 --> 00:02:14,912
And crap
46
00:02:15,168 --> 00:02:17,472
Cancel letter background so just call this
47
00:02:17,984 --> 00:02:18,752
Background
48
00:02:19,776 --> 00:02:21,824
Adding my logo
49
00:02:22,336 --> 00:02:24,128
Adding a logo creator
50
00:02:24,640 --> 00:02:27,712
Earlier in this course for Skyline punch
51
00:02:28,224 --> 00:02:29,504
So here is my
52
00:02:30,016 --> 00:02:31,040
Logo I created
53
00:02:31,808 --> 00:02:34,368
Earlier in this course so I'm actually gonna just
54
00:02:35,648 --> 00:02:37,952
Merge these two layers together here
55
00:02:38,464 --> 00:02:39,232
Copy them
56
00:02:39,488 --> 00:02:40,768
And then pays them in here
57
00:02:41,024 --> 00:02:42,816
And you noticed
58
00:02:43,072 --> 00:02:46,400
That I have some blue here we just use the magic wand tool
59
00:02:47,168 --> 00:02:47,936
Interest
60
00:02:50,496 --> 00:02:52,544
Search eat away and just delete that
61
00:02:53,056 --> 00:02:57,920
I know that's not the most ideal solution but blade not guys after 10 years of making games
62
00:02:58,176 --> 00:02:59,968
I still do that kind of stuff
63
00:03:00,224 --> 00:03:06,368
Hey I select and delete things that really should have been deleted in a previous vector
64
00:03:06,624 --> 00:03:07,648
But
65
00:03:07,904 --> 00:03:14,048
Honestly I'm not going to worry about it so I'm going to scale this down to about like this this is our logo here
66
00:03:15,072 --> 00:03:18,400
And I don't really like these Colours here so I'm just going to do white
67
00:03:19,168 --> 00:03:20,192
Wetherspoon menu
68
00:03:22,496 --> 00:03:23,008
Ok
69
00:03:23,264 --> 00:03:24,032
Something like that
70
00:03:25,312 --> 00:03:28,896
Unity over here and that's going to give us a room for buttons
71
00:03:29,152 --> 00:03:33,760
On the right side what we could do we can also if we wanted to we could have the button
72
00:03:34,016 --> 00:03:35,808
Either on the right side or
73
00:03:36,576 --> 00:03:37,600
I could actually just
74
00:03:39,648 --> 00:03:40,672
Or when I can do
75
00:03:42,464 --> 00:03:45,280
Is centre that here and then have the buttons
76
00:03:45,536 --> 00:03:46,048
Blow
77
00:03:46,304 --> 00:03:47,584
But I like having
78
00:03:47,840 --> 00:03:49,376
On the left side ok
79
00:03:49,632 --> 00:03:55,776
That's where I love was going to be so it's a bit logo so it's background and logo two layers that we can use
80
00:03:56,032 --> 00:03:57,056
Honour main menu
81
00:03:57,568 --> 00:03:58,592
But saying that out
82
00:03:59,104 --> 00:04:01,408
I'm just going to double check to make sure
83
00:04:01,920 --> 00:04:05,248
That my main menu has all of a graphics creator
84
00:04:05,760 --> 00:04:09,600
Two backgrounds here looks like a white background was imported as well
85
00:04:09,856 --> 00:04:11,904
Will I need that so I can worry about it
86
00:04:12,928 --> 00:04:15,488
So what I'm going to do is actually go the game object
87
00:04:15,744 --> 00:04:16,512
You are
88
00:04:17,280 --> 00:04:17,791
Image
89
00:04:18,047 --> 00:04:18,559
Ok
90
00:04:19,071 --> 00:04:25,215
In the nursery creative a canvas and also in a vent system I did not use these two
91
00:04:25,471 --> 00:04:31,615
When I created pinstripe so that whole game was created without even using these components and I'll be
92
00:04:31,871 --> 00:04:33,151
To the guys I mean what they do
93
00:04:33,407 --> 00:04:34,687
Turn a worry about those
94
00:04:38,271 --> 00:04:41,087
But we now have this image here ok
95
00:04:41,599 --> 00:04:44,159
So this is going to be our background ok
96
00:04:44,927 --> 00:04:46,719
Search just rename it background
97
00:04:47,487 --> 00:04:49,791
I'm in a dragon my background to the source image
98
00:04:50,303 --> 00:04:51,071
Never go
99
00:04:51,327 --> 00:04:52,607
Set native size
100
00:04:52,863 --> 00:04:54,911
Mean also zero it out
101
00:04:55,167 --> 00:04:57,471
Can you notice that it's much bigger
102
00:04:57,983 --> 00:04:59,007
In Arkansas
103
00:04:59,519 --> 00:05:01,311
So go to the can this year
104
00:05:02,847 --> 00:05:04,383
Go away came descaler
105
00:05:05,151 --> 00:05:06,431
Scale with screen size
106
00:05:07,711 --> 00:05:12,063
And then we're going to the reference resolution to a 4K image which is 3840
107
00:05:12,319 --> 00:05:13,855
DE21 6th
108
00:05:18,975 --> 00:05:19,999
So we have
109
00:05:20,767 --> 00:05:26,399
Her background image we can also head in our logo actually copy the background paste
110
00:05:26,655 --> 00:05:28,191
How many corners logo
111
00:05:28,447 --> 00:05:29,727
How many dragon my logo
112
00:05:30,751 --> 00:05:32,799
Need a size
113
00:05:33,311 --> 00:05:35,359
And I'm going to move it over to the left side
114
00:05:35,871 --> 00:05:36,639
Tomorrow
115
00:05:37,151 --> 00:05:38,431
And then I'm going to make sure
116
00:05:38,687 --> 00:05:42,271
The Anchor preset are set to the centre left
117
00:05:42,527 --> 00:05:46,111
Now you'll notice that if I go to what's a 4 by 3
118
00:05:46,623 --> 00:05:52,255
We now get these blue bars at the top that's because the background image is not stretching to fit
119
00:05:52,767 --> 00:05:53,535
We can actually
120
00:05:53,791 --> 00:05:56,095
Easily fix this by going the background
121
00:05:56,351 --> 00:05:58,143
Inserting the stretch here
122
00:05:58,399 --> 00:06:02,751
Now be careful your guys and I forget this even now after 10 years of making games
123
00:06:03,263 --> 00:06:04,543
If you click this
124
00:06:05,823 --> 00:06:11,967
It's now going to be stuck in this position so if I go back to 16 by 9 it's actually going straight even smaller
125
00:06:12,479 --> 00:06:17,343
Sonos how it's trying to stretch based on that default size you gave it
126
00:06:17,855 --> 00:06:19,135
So go ahead
127
00:06:19,903 --> 00:06:21,183
Instead it back
128
00:06:22,975 --> 00:06:23,999
2 cm
129
00:06:24,511 --> 00:06:25,791
So it's not stretching
130
00:06:26,815 --> 00:06:28,351
Quick set native size
131
00:06:28,863 --> 00:06:31,423
And then go back to 16 by 9
132
00:06:32,191 --> 00:06:33,215
Enven
133
00:06:34,239 --> 00:06:35,263
Set stretching
134
00:06:36,287 --> 00:06:36,799
Ok
135
00:06:37,055 --> 00:06:38,079
So now when we go back
136
00:06:38,847 --> 00:06:39,871
243
137
00:06:40,383 --> 00:06:43,967
It stretches based on that default size size we just gave it
138
00:06:44,479 --> 00:06:45,247
So now
139
00:06:45,759 --> 00:06:48,063
It's dragging to all different screen sizes
140
00:06:48,575 --> 00:06:50,879
And we can't even got a free app back to your and see it
141
00:06:51,647 --> 00:06:52,671
Scaling
142
00:06:53,951 --> 00:06:57,023
No matter what size we have it out it looks good ok
143
00:06:58,047 --> 00:07:00,607
Now let's go ahead and create the buttons
144
00:07:00,863 --> 00:07:04,959
We could technically create images in the Photoshop file
145
00:07:05,471 --> 00:07:11,615
And use those images as buttons in my case I'm actually going to just create UI buttons that are
146
00:07:11,871 --> 00:07:13,407
Change Wi-Fi default from unity
147
00:07:13,919 --> 00:07:15,711
Somebody going pretty game object
148
00:07:16,223 --> 00:07:17,759
Rewind button
149
00:07:18,527 --> 00:07:20,063
Right so now we have
150
00:07:20,319 --> 00:07:21,599
This little B in here
151
00:07:21,855 --> 00:07:22,879
Elysia
152
00:07:23,391 --> 00:07:27,231
What's the scale of the size little bit ok so something like
153
00:07:27,999 --> 00:07:29,535
This looks kid k
154
00:07:30,047 --> 00:07:31,839
Angel nearest the Brighton
155
00:07:32,095 --> 00:07:33,119
Text
156
00:07:33,631 --> 00:07:36,447
Is very small you can barely see it there
157
00:07:36,703 --> 00:07:37,471
Very small
158
00:07:37,727 --> 00:07:42,079
All the text is actually a child of the button just increase the font size
159
00:07:42,335 --> 00:07:43,103
There we go
160
00:07:43,871 --> 00:07:45,663
Emmet habits a play
161
00:07:48,479 --> 00:07:49,759
Furniture
162
00:07:51,039 --> 00:07:52,831
And it's sized appropriately
163
00:07:53,343 --> 00:07:58,975
And you don't want to be careful creating these buttons guys and there's a lot of things that I'm not going to cover in this tutorial
164
00:08:00,511 --> 00:08:02,815
For example entering the text in
165
00:08:03,071 --> 00:08:04,351
All of these various
166
00:08:05,375 --> 00:08:07,167
Parameters associated with the text
167
00:08:07,935 --> 00:08:09,727
But I think for now
168
00:08:10,495 --> 00:08:11,775
This is a great
169
00:08:14,079 --> 00:08:15,103
Place to start
170
00:08:15,359 --> 00:08:17,407
For your demo just a very simple button
171
00:08:18,431 --> 00:08:23,807
Ok so we have a play button here and I'm not going to copy this in create a quick button just yet
172
00:08:24,063 --> 00:08:29,951
How much is going to test this out so let's save our main menu and hopefully so here is Albrighton in your notice
173
00:08:30,719 --> 00:08:34,047
Actually has some effects associated with it when we click
174
00:08:35,071 --> 00:08:36,863
That's because of the button
175
00:08:37,119 --> 00:08:38,399
Component over here
176
00:08:38,655 --> 00:08:40,447
Is just a few parameters we can change
177
00:08:41,215 --> 00:08:43,775
So there's a pressed colour here we can make it you know
178
00:08:44,287 --> 00:08:46,847
A vibrant pink colour
179
00:08:50,431 --> 00:08:52,735
And there's a highlighter colour we can make it a day
180
00:08:52,991 --> 00:08:55,295
You know it just a very sad pic see that
181
00:08:57,599 --> 00:08:59,647
Actually really like those colours
182
00:09:00,159 --> 00:09:06,303
Send a copy this component in play mode here so if we exit play Mode all of these colours are going to go back to them to 4
183
00:09:06,815 --> 00:09:08,351
So that's fine a copy that can Pony
184
00:09:09,631 --> 00:09:10,655
And I'll pissed
185
00:09:10,911 --> 00:09:11,935
Does values
186
00:09:12,447 --> 00:09:12,959
Now
187
00:09:14,239 --> 00:09:15,263
We have that button
188
00:09:15,775 --> 00:09:18,335
Enable turn pink when you select
189
00:09:18,591 --> 00:09:19,615
So I really like that
190
00:09:20,383 --> 00:09:25,503
I'm also going to change the colour of the text as well so I think I wanted to be
191
00:09:26,527 --> 00:09:29,343
This purple colour I really like that
192
00:09:31,391 --> 00:09:35,999
Now before I copy this button and create a quick button from it
193
00:09:36,767 --> 00:09:38,047
I actually wanted to
194
00:09:38,303 --> 00:09:43,167
Work properly and then just make a prefab at a bit so I can use it over and over again
195
00:09:43,679 --> 00:09:45,471
So in order for it to work properly
196
00:09:45,727 --> 00:09:51,871
We actually need to create a script in it's a very simple Script so don't panic all it's called is menu
197
00:09:52,127 --> 00:09:52,639
Handle
198
00:09:52,895 --> 00:09:59,039
Ok in the menu handler is going to do two things it's been a load of seen or is going to enable us
199
00:09:59,295 --> 00:10:00,319
The demo ok
200
00:10:00,345 --> 00:10:02,632
Subtitled by
-♪ online-courses.club ♪-
We compress knowledge for you!
https://t.me/joinchat/ailxpXoW3JVjYzQ1
201
00:10:02,634 --> 00:10:02,367
Has got a headache reading the Script
202
00:10:03,391 --> 00:10:06,975
I'm just going to create a c-sharp script in Kali
203
00:10:07,231 --> 00:10:08,767
Menu handler
204
00:10:12,607 --> 00:10:13,887
Once that's created
205
00:10:14,399 --> 00:10:15,423
Open it up
206
00:10:15,679 --> 00:10:21,823
All we got to do is basically create a script that allows buttons to have
207
00:10:22,079 --> 00:10:25,407
Two functions and that's quick game and then load scene
208
00:10:25,919 --> 00:10:29,503
Self read aloud seen we need to be able to specify
209
00:10:29,759 --> 00:10:34,367
Which scene we're going to load right so we got to do is create a new serialise private field
210
00:10:34,879 --> 00:10:37,439
And it's gonna be a private string
211
00:10:37,695 --> 00:10:39,231
Ennis going to be
212
00:10:39,743 --> 00:10:41,023
Which scene
213
00:10:41,791 --> 00:10:43,839
So we can specify which seem we want a load
214
00:10:44,351 --> 00:10:44,863
Ok
215
00:10:45,887 --> 00:10:50,495
Animals going to create two functions very simple functions
216
00:10:51,007 --> 00:10:53,311
First woman to create a public function
217
00:10:54,079 --> 00:10:56,639
Ennis going to be cold quit game
218
00:10:58,175 --> 00:11:04,319
And if you guys ever forget how to quit your application and I'll promise you this I forget this all
219
00:11:04,575 --> 00:11:07,391
Time so I'm actually referencing right now to my right
220
00:11:07,647 --> 00:11:13,791
What is function is called by just make you feel better I forget these functions all the time so in order to
221
00:11:14,047 --> 00:11:15,071
Your application
222
00:11:15,583 --> 00:11:18,655
All you say is application that quit
223
00:11:18,911 --> 00:11:20,191
Very simple back
224
00:11:20,447 --> 00:11:26,591
My memory is terrible and I will forget that so always be ready to jump on Google and look at how
225
00:11:26,847 --> 00:11:32,991
I quit my application but in my case I had to my right here and that's what it's called application quit
226
00:11:33,503 --> 00:11:35,807
We also need to create a new function
227
00:11:36,575 --> 00:11:37,599
Public void
228
00:11:38,111 --> 00:11:40,415
Is there a called loadscene
229
00:11:40,927 --> 00:11:43,487
When are we going to do here is seen manager
230
00:11:44,511 --> 00:11:45,279
Dart
231
00:11:45,791 --> 00:11:50,399
Load scene and then we're going to putting the prime minister which team
232
00:11:54,239 --> 00:11:54,751
So
233
00:11:55,263 --> 00:11:57,823
Why am I getting an error here or southern sea
234
00:11:58,335 --> 00:12:01,919
The name c manager does not exist in the current context
235
00:12:02,175 --> 00:12:04,479
What's take a look at that show potential fixes
236
00:12:04,991 --> 00:12:06,271
Looks like we need
237
00:12:06,527 --> 00:12:08,575
Put this at the top here which is
238
00:12:08,831 --> 00:12:12,159
Using unityengine scene management
239
00:12:12,671 --> 00:12:13,951
So now you can see
240
00:12:15,231 --> 00:12:17,535
Without of the Script up here in that allows us
241
00:12:17,791 --> 00:12:21,375
To use a lot of functions associated with seen management
242
00:12:21,631 --> 00:12:23,679
The unity has out of the box
243
00:12:24,447 --> 00:12:28,543
So there's a two functions here now getting guys when you're writing scripts
244
00:12:28,799 --> 00:12:29,567
And you're not
245
00:12:29,823 --> 00:12:33,151
Putting cold inside of the update or the start function
246
00:12:34,175 --> 00:12:38,783
You creating functions that need to be fired from somewhere right now they're not being fired anyway
247
00:12:39,039 --> 00:12:44,671
Nobody is firing these so we actually need to tell the buttons to fire these functions
248
00:12:45,439 --> 00:12:48,767
The first function we want to fire is the loadscene function
249
00:12:49,279 --> 00:12:53,887
Search John back in the unity the first thing we want to do is actually just put that menu handler
250
00:12:54,143 --> 00:12:55,423
Somewhere ok
251
00:12:55,935 --> 00:12:59,007
We can actually access the Script if it's not somewhere in our singer
252
00:12:59,519 --> 00:13:01,823
Tell me an actually put it just inside of a canvas
253
00:13:02,335 --> 00:13:05,151
You can really put it anywhere you want but I'm going to put it into the canvas
254
00:13:06,431 --> 00:13:08,735
Now when I select my button here
255
00:13:09,503 --> 00:13:11,039
I can actually go to the button
256
00:13:11,807 --> 00:13:12,831
In look at this
257
00:13:13,087 --> 00:13:16,159
We have this call Lidl on click
258
00:13:16,415 --> 00:13:17,695
Section of the button
259
00:13:18,463 --> 00:13:21,279
This is another way Forest add events
260
00:13:21,791 --> 00:13:27,423
2 this is sort of what you need to give us out of a box for this very specific component button
261
00:13:29,215 --> 00:13:34,079
You could write your own script called button and then create all of this functionality
262
00:13:34,335 --> 00:13:38,431
From scratch if you wanted to that's actually totally fine and I've done that before
263
00:13:39,199 --> 00:13:41,503
But you need is created it for us already
264
00:13:41,759 --> 00:13:44,319
So let's just go ahead and use what they've given us
265
00:13:44,575 --> 00:13:48,159
Summer goddess on collection down here and then click the + icon
266
00:13:49,183 --> 00:13:51,999
Look we can drag an object in the slow field here
267
00:13:52,255 --> 00:13:57,119
Nnl find various functions associated with scripts on that object
268
00:13:57,631 --> 00:13:58,655
It's very cool
269
00:13:59,167 --> 00:14:01,215
So scary drag the canvas
270
00:14:01,727 --> 00:14:02,239
To this
271
00:14:03,519 --> 00:14:04,287
Sea of here
272
00:14:05,055 --> 00:14:07,615
In love with a dropdown with various functions we can use
273
00:14:07,871 --> 00:14:09,407
There's a menu handler script
274
00:14:10,175 --> 00:14:12,991
And now look we can say it load scene
275
00:14:16,063 --> 00:14:19,391
So the only thing left we need to do is basically tell the canvas
276
00:14:19,903 --> 00:14:20,927
Tell them you have her
277
00:14:21,183 --> 00:14:22,207
What scene download
278
00:14:23,231 --> 00:14:25,279
Well let's just type in the scene which is
279
00:14:25,535 --> 00:14:26,303
Level one
280
00:14:26,559 --> 00:14:29,375
Never wanted to go to a cutscene we could type in
281
00:14:29,631 --> 00:14:31,167
The sea name for a cutscene
282
00:14:31,679 --> 00:14:33,471
If we wanted to go to
283
00:14:33,727 --> 00:14:39,871
Another scene other than the first level maybe a saved level we can access that saves level from the menu Hale
284
00:14:40,127 --> 00:14:40,895
Write a script for that
285
00:14:41,407 --> 00:14:44,479
Play narcos to keep it simple we're just gonna go straight to level one
286
00:14:45,503 --> 00:14:47,807
What's a that intestinal
287
00:14:48,063 --> 00:14:50,367
So let's go ahead and try and hit play and see what happens
288
00:14:55,231 --> 00:14:55,999
Perfect
289
00:14:57,279 --> 00:15:00,351
Now if it takes a while to load a scene
290
00:15:00,863 --> 00:15:05,471
Just remember that it's gonna be a lot faster when you actually create a stand-alone build
291
00:15:05,983 --> 00:15:07,263
To play a game
292
00:15:07,519 --> 00:15:09,311
Outside of the unity editor
293
00:15:09,823 --> 00:15:13,919
Being inside of Unity editor always slows things down significantly
294
00:15:15,199 --> 00:15:17,247
Now we're not going to create a loading
295
00:15:17,503 --> 00:15:23,647
Bar work some kind of animated GIF of the player running and then have some text that says low
296
00:15:23,903 --> 00:15:29,279
Or anything like that for this demo that's for you to do when you're creating your game at the Polish your game
297
00:15:29,791 --> 00:15:34,655
But in our case this levels actually gonna load pretty quick because it's not a huge level
298
00:15:35,167 --> 00:15:39,519
I'm fine not creating a loading bar for the purposes of this story or demo
299
00:15:40,287 --> 00:15:46,431
Ok so that button works great so instead of just copying this and pasting it
300
00:15:46,687 --> 00:15:49,247
Do you want to be careful remember any time you going to paste
301
00:15:49,759 --> 00:15:55,135
A game object over and over again in use it be sure to make a prefab out of it ok
302
00:15:55,647 --> 00:15:57,695
How many go ahead in drag this
303
00:15:57,951 --> 00:15:59,487
Into my prefabs folder
304
00:16:00,767 --> 00:16:02,303
So that we can use this twice
305
00:16:03,071 --> 00:16:03,583
Ok
306
00:16:03,839 --> 00:16:04,863
So we're going to go
307
00:16:06,399 --> 00:16:08,447
So we're going to go and copy this and paste
308
00:16:11,775 --> 00:16:13,823
And I'm going to rename this to
309
00:16:15,871 --> 00:16:16,639
Button
310
00:16:16,895 --> 00:16:17,663
Quit
311
00:16:18,175 --> 00:16:21,247
And I just make sure we need this one but play
312
00:16:24,063 --> 00:16:27,135
Alright it's just change the text to
313
00:16:27,903 --> 00:16:28,415
Quit
314
00:16:28,927 --> 00:16:29,951
And then
315
00:16:30,463 --> 00:16:32,767
It is easy as simply changing
316
00:16:34,559 --> 00:16:35,839
From loadscene
317
00:16:36,351 --> 00:16:37,119
2 quid game
318
00:16:37,887 --> 00:16:38,399
Ok
319
00:16:39,167 --> 00:16:40,191
NS&I saving
320
00:16:40,703 --> 00:16:43,007
It's really that simple guys
321
00:16:43,775 --> 00:16:45,055
Tesco head in hip play
322
00:16:53,759 --> 00:16:59,391
So we can technically quit out of a game or an application inside the unity editor
323
00:16:59,647 --> 00:17:01,183
Ok so quick quick
324
00:17:01,439 --> 00:17:02,719
Nothing's going to happen
325
00:17:02,975 --> 00:17:04,511
That's ok that's expected
326
00:17:05,023 --> 00:17:07,327
But if we created a stand-alone application
327
00:17:07,839 --> 00:17:10,143
It would actually quit out of the application
328
00:17:10,655 --> 00:17:12,191
So that's gonna work great
329
00:17:12,447 --> 00:17:14,239
Are two buttons work awesome
330
00:17:14,495 --> 00:17:17,823
MHA what are we just make this menu really beautiful
331
00:17:18,079 --> 00:17:19,615
By Simply adding
332
00:17:19,871 --> 00:17:22,175
A song to the main menu ok
333
00:17:22,687 --> 00:17:26,271
You may wonder do we want to use the audio trigger script
334
00:17:26,527 --> 00:17:32,671
Walt no the audio trigger script is really meant for when the player is in the scene so when I
335
00:17:32,927 --> 00:17:35,999
Rhyme into a new area I want new music to play
336
00:17:36,255 --> 00:17:39,071
It's triggering with the player
337
00:17:39,327 --> 00:17:43,935
On the main menu there's no reason to trigger anything we should just start playing the music
338
00:17:44,191 --> 00:17:44,959
Right away
339
00:17:45,471 --> 00:17:47,263
Actually very simple
340
00:17:47,519 --> 00:17:50,591
So are we going to do is actually just drag a song we like
341
00:17:51,103 --> 00:17:54,175
Just dragging into the scene that's really all you want to do here
342
00:17:54,431 --> 00:17:55,199
Such as dragon
343
00:17:55,711 --> 00:17:56,479
And
344
00:17:57,247 --> 00:17:58,783
There we go on this just called this
345
00:17:59,039 --> 00:18:04,671
Menu music if you go to the audio source that was created by the fall on this game magic
346
00:18:05,439 --> 00:18:11,583
You can look at the various parameters here and take play on awake is set to true so that's good then start playing Runaway
347
00:18:12,095 --> 00:18:12,863
The volume
348
00:18:13,119 --> 00:18:14,143
Is that a 1
349
00:18:14,399 --> 00:18:15,167
That looks like
350
00:18:15,423 --> 00:18:16,959
Stop playing the music
351
00:18:20,031 --> 00:18:20,799
When we play
352
00:18:30,271 --> 00:18:32,319
And because we loaded into a new scene
353
00:18:32,575 --> 00:18:34,111
It's going to
354
00:18:35,391 --> 00:18:37,183
Go ahead and stop playing that music
355
00:18:37,695 --> 00:18:39,999
Now there's a lot of things that we could do
356
00:18:40,511 --> 00:18:42,815
To make this mean menu really shine
357
00:18:43,071 --> 00:18:45,119
And I'm not going to lead into those things
358
00:18:45,375 --> 00:18:50,495
Otherwise this tutorial could be 24-hours long there's just so many cool things we can do with this
359
00:18:50,751 --> 00:18:56,895
But one thing that you can immediately add your menu to make it feel really special especially for you guys yes
360
00:18:57,151 --> 00:19:01,247
Sing this to your Kickstarter backers or potential backers for as a demo
361
00:19:01,503 --> 00:19:05,343
Are you sending sending it to publishers and you want them to a bully
362
00:19:05,855 --> 00:19:07,647
Get invested in this game
363
00:19:08,159 --> 00:19:14,303
What what are the things you can do with easily very easily just had a button sound effect ok
364
00:19:14,559 --> 00:19:16,607
So when we click the button player sound
365
00:19:17,375 --> 00:19:19,167
Now this is actually really easy
366
00:19:19,679 --> 00:19:25,055
All you gotta do is actually just play a sound effect through something that has an audio source
367
00:19:25,567 --> 00:19:31,199
Now in this case the menu music gameobject has an audio source and it's playing this song here
368
00:19:31,967 --> 00:19:37,855
But we can also just finally sound effects through it at the same time it's like having a speaker
369
00:19:38,111 --> 00:19:44,255
Playing a song well we could also play the sound of a click of Button click sound through
370
00:19:44,511 --> 00:19:48,351
That speaker really rudimentary way of thinking about it but it works
371
00:19:48,607 --> 00:19:51,423
So watch this has just clicked on her button play
372
00:19:51,679 --> 00:19:54,751
I'm gonna go ahead and create a new click event
373
00:19:55,007 --> 00:19:57,311
I'm gonna drag that menu music here
374
00:19:58,079 --> 00:19:59,103
In a minute click
375
00:19:59,359 --> 00:20:00,383
Are you source
376
00:20:00,639 --> 00:20:02,431
Play one shot
377
00:20:02,687 --> 00:20:04,735
That's going to allow us to play a sound effect
378
00:20:04,991 --> 00:20:08,831
Go ahead and just drag a button sound effect something like that
379
00:20:09,087 --> 00:20:11,135
A must do the same for quitting
380
00:20:12,159 --> 00:20:13,695
Drag the menu music
381
00:20:13,951 --> 00:20:15,487
Into a new event
382
00:20:16,255 --> 00:20:18,303
Audio source play One Shot engine
383
00:20:18,559 --> 00:20:19,839
Choose a sound effect
384
00:20:20,351 --> 00:20:21,119
So now
385
00:20:21,887 --> 00:20:23,167
Play here
386
00:20:23,679 --> 00:20:29,823
Don't know this weekend
387
00:20:30,079 --> 00:20:33,663
Or
388
00:20:33,919 --> 00:20:35,199
So that is how
389
00:20:35,711 --> 00:20:39,039
You can easily add sound effects to your main menu
390
00:20:39,295 --> 00:20:42,879
It's really amazing how quickly you can make your main menu shut
391
00:20:43,391 --> 00:20:49,535
A few other things you could do guys it's just create a very quick animation ok so good right hand
392
00:20:50,815 --> 00:20:52,863
And I'm gonna go ahead and click create
393
00:20:53,119 --> 00:20:54,911
For the animation window
394
00:20:55,167 --> 00:20:57,727
Have you got the animation here let me go to UI
395
00:20:57,983 --> 00:21:01,311
And I'm going to create a new animation I'm going to call this a main menu
396
00:21:02,847 --> 00:21:03,871
Fade in
397
00:21:06,943 --> 00:21:08,735
The record button
398
00:21:09,759 --> 00:21:11,807
I'm in my seen tab here
399
00:21:12,063 --> 00:21:13,855
Watch this is so cool
400
00:21:14,623 --> 00:21:16,672
All I got to do is click on my logo here
401
00:21:17,696 --> 00:21:19,232
Drag him to the left
402
00:21:20,768 --> 00:21:22,560
NN at One S
403
00:21:23,072 --> 00:21:25,120
Drive to the right like this
404
00:21:25,632 --> 00:21:27,936
Guys we can do the same thing for the play button
405
00:21:28,960 --> 00:21:31,264
The very beginning of the animation on start here
406
00:21:31,520 --> 00:21:32,800
Equip
407
00:21:34,848 --> 00:21:36,384
And then at 1 second
408
00:21:36,640 --> 00:21:37,664
It will drag
409
00:21:38,432 --> 00:21:42,016
Interframe like this so it play here and see on Fields
410
00:21:43,040 --> 00:21:43,552
That's
411
00:21:43,808 --> 00:21:44,576
Awesome
412
00:21:44,832 --> 00:21:46,368
When we had a little bounce effect
413
00:21:46,624 --> 00:21:48,416
Ok so maybe something like this
414
00:21:49,184 --> 00:21:52,000
Doesn't make sense in the second watch this
415
00:21:54,304 --> 00:21:56,864
Just suddenly bouncing the place
416
00:21:58,144 --> 00:22:01,472
When my favourite thing to do is add some delay to various gameobject
417
00:22:01,728 --> 00:22:04,032
So the logo comes in first
418
00:22:04,544 --> 00:22:06,592
Then the play button comes in
419
00:22:07,104 --> 00:22:08,896
And then equip button comes in
420
00:22:09,664 --> 00:22:10,432
So
421
00:22:10,688 --> 00:22:11,712
So they like this
422
00:22:13,248 --> 00:22:17,344
It's so easy and so simple just make sure you got to be in America to have here
423
00:22:17,856 --> 00:22:19,136
Make sure that Luke time
424
00:22:19,648 --> 00:22:21,952
Is set a false Ibiza you select
425
00:22:22,720 --> 00:22:26,816
You know the actual game object with animation on it so in this case is the canvas
426
00:22:27,072 --> 00:22:32,704
Then I can double click on main menu fade in animation in sure be sure that Luke time is turned off
427
00:22:33,728 --> 00:22:35,008
Play
428
00:22:37,056 --> 00:22:39,104
There we go there's a menu
429
00:22:46,784 --> 00:22:49,856
Very simple
430
00:22:50,112 --> 00:22:52,928
Obviously you can change this and make it look as good as you want
431
00:22:53,184 --> 00:22:54,464
Polisher
432
00:22:54,720 --> 00:22:57,024
Have some fine change the fonts
433
00:22:57,280 --> 00:23:01,376
But that is generally basically what I mean menuires
434
00:23:01,632 --> 00:23:04,192
Now I want to make sure that I'm clear
435
00:23:04,704 --> 00:23:08,032
Summit platforms don't have a mouse right
436
00:23:08,288 --> 00:23:09,056
So really
437
00:23:09,568 --> 00:23:13,920
Does more complexity of creating mean menus for other platforms
438
00:23:14,176 --> 00:23:20,320
But in the case of steam you can you can get away with just using a mouse or you can create some functionality
439
00:23:20,576 --> 00:23:24,928
Keyboard there's plenty of assets on the Asset Store to make sure that there's
440
00:23:25,184 --> 00:23:27,232
A universal approach
441
00:23:27,488 --> 00:23:33,632
To Hell your mean when you work personally if I know I'm going to make a game for Nintendo switch I make sure that
442
00:23:33,888 --> 00:23:35,168
Use the vertical input
443
00:23:35,424 --> 00:23:39,520
In the horizontal input don't use a mouse
444
00:23:40,032 --> 00:23:45,152
So that means that play would be selected by default and I press space to play
445
00:23:45,664 --> 00:23:51,808
Or if I want to get to the quick button I pressed down and then space there is some more complex functional
446
00:23:52,064 --> 00:23:55,904
To creating a system like that but I'm not going to get into for these tutorials
447
00:23:56,416 --> 00:23:58,720
But for steam for creating a steam game
448
00:23:58,976 --> 00:24:01,024
Is totally fine they just use a mouse
449
00:24:01,280 --> 00:24:03,584
NN1 final thing here guys
450
00:24:04,096 --> 00:24:06,400
You want to make sure you got your build settings
451
00:24:06,912 --> 00:24:10,752
And adding the main menu to your scenes in build
452
00:24:11,008 --> 00:24:15,104
That's something I always forget to do so we're going to go to our sins here
453
00:24:15,360 --> 00:24:16,384
Go to main menu
454
00:24:16,640 --> 00:24:17,920
Drag up and
455
00:24:18,688 --> 00:24:22,784
Now ready to go you want to make sure that they ordered properly ok
456
00:24:23,040 --> 00:24:28,160
Main menu level 1 level 2 in Gemma hunter in a load by default
457
00:24:28,416 --> 00:24:29,184
When you create
458
00:24:29,440 --> 00:24:30,976
A build for this game
34643
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.