﻿1
00:00:04,320 --> 00:00:05,290
‫Hello and welcome.

2
00:00:05,290 --> 00:00:10,590
‫In this lecture, we're going to be bringing in some external assets such as these barrels and crates

3
00:00:10,590 --> 00:00:15,090
‫and enabling physics on them so we can have a little bit of fun smashing them to pieces.

4
00:00:15,210 --> 00:00:18,180
‫Let's dive in and see how to get these assets.

5
00:00:18,870 --> 00:00:24,420
‫So currently the least satisfying thing about our game is the assets within it.

6
00:00:24,420 --> 00:00:30,930
‫We are they're pretty plain and vanilla and they certainly don't reflect what I want the game to reflect,

7
00:00:30,930 --> 00:00:35,160
‫which is that this is us wrecking a warehouse with wrecking balls.

8
00:00:35,160 --> 00:00:37,230
‫So this isn't what we want.

9
00:00:37,230 --> 00:00:38,790
‫We need some new assets.

10
00:00:38,790 --> 00:00:44,190
‫And fortunately there is a great integration with the unreal marketplace.

11
00:00:44,190 --> 00:00:49,890
‫If you open up your Epic Games launcher, get to the Unreal section in the left and then click on the

12
00:00:49,890 --> 00:00:53,010
‫Marketplace tab in the top tab bar.

13
00:00:53,010 --> 00:00:56,130
‫Then you can see all of the assets available.

14
00:00:56,130 --> 00:00:59,700
‫Now, don't worry, I'm not going to be asking you to pay for any of these assets right now, although

15
00:00:59,700 --> 00:01:06,390
‫I do recommend paying for assets as you get further down the road with Unreal, it really helps supercharge

16
00:01:06,390 --> 00:01:08,790
‫you into doing more things.

17
00:01:09,030 --> 00:01:13,380
‫Now, what you can do, however, is you can filter by different types of free content.

18
00:01:13,380 --> 00:01:19,500
‫There's a sub toolbar in the marketplace section called Free and under that dropdown you can see there's

19
00:01:19,500 --> 00:01:21,960
‫a bunch of different types of free.

20
00:01:21,960 --> 00:01:26,580
‫You've got the Epic Games content, which is stuff released by Epic Games themselves off from games.

21
00:01:26,580 --> 00:01:31,470
‫They didn't release mega scans, which comes from the Epic Games, mega scans acquisition.

22
00:01:31,470 --> 00:01:34,740
‫Then there is the free for the month collection.

23
00:01:34,740 --> 00:01:39,090
‫So these are asset packs that if you download now, you can use them for free forever, but they're

24
00:01:39,090 --> 00:01:40,470
‫only available this month.

25
00:01:40,470 --> 00:01:45,240
‫Then there's the permanently free collection, which is stuff that has been purchased by Epic Games

26
00:01:45,240 --> 00:01:47,670
‫to make available for us to use.

27
00:01:47,670 --> 00:01:52,350
‫So we're going to be using stuff from the permanently free collection and you could go through and have

28
00:01:52,350 --> 00:01:56,940
‫a look for the basically there's there's over 100 different asset packs here.

29
00:01:56,940 --> 00:02:00,330
‫There's a really cool one that I like called the Factory Environment Collection.

30
00:02:00,330 --> 00:02:01,620
‫It looks really awesome.

31
00:02:01,620 --> 00:02:05,070
‫That's a bit too complicated for what I want to achieve in this section.

32
00:02:05,070 --> 00:02:10,230
‫However, I do recommend that if you want to take the contents of this section further.

33
00:02:10,230 --> 00:02:14,940
‫However, what I'm going to be using is an asset pack that I've already downloaded, and if we go to

34
00:02:14,940 --> 00:02:22,170
‫the library tab and scroll down through the many, many assets that I have got, what I'm looking for

35
00:02:22,170 --> 00:02:27,960
‫is one called industry and I can filter these as industry props pack six.

36
00:02:27,960 --> 00:02:33,300
‫That's the one that I would recommend it you get if you want to follow along with what I'm doing in

37
00:02:33,300 --> 00:02:34,080
‫this project.

38
00:02:34,080 --> 00:02:40,230
‫Unfortunately, if you are following along on a mac, this particular asset pack doesn't support being

39
00:02:40,230 --> 00:02:42,330
‫imported into a project on Mac.

40
00:02:42,330 --> 00:02:48,810
‫But don't worry, I've packaged up a download for you to use and I'll show you how to use it after we've

41
00:02:48,810 --> 00:02:51,570
‫gone through the instructions for Windows.

42
00:02:52,170 --> 00:02:57,300
‫So you search for that in the marketplace, you add it to your basket and you have to check out as if

43
00:02:57,300 --> 00:03:00,510
‫you may even have to enter a credit card even though they're free.

44
00:03:00,780 --> 00:03:06,270
‫You may have to enter a credit card and you won't pay anything, and then it will end up in your vault.

45
00:03:06,270 --> 00:03:11,580
‫In the library section, you'll need to click Add to project and if you haven't used this before, it

46
00:03:11,580 --> 00:03:13,020
‫will have to download it first.

47
00:03:13,020 --> 00:03:16,170
‫Don't worry, it's not too big, it's only about 200 megabytes.

48
00:03:16,170 --> 00:03:18,930
‫And then you can go and add to a project.

49
00:03:18,940 --> 00:03:26,250
‫Then it will come up with this dialog here and at the moment it's defaulting to just showing the compatible

50
00:03:26,250 --> 00:03:27,570
‫project versions.

51
00:03:27,570 --> 00:03:33,450
‫But if you want to bring it into a newer version and you think it will probably work, which I think

52
00:03:33,450 --> 00:03:40,140
‫it will, you can click show all projects and then you can look, we can search or you can look down

53
00:03:40,140 --> 00:03:43,890
‫through your projects and find the Warehouse Wreckage project.

54
00:03:43,890 --> 00:03:49,560
‫And then because there isn't a compatible version within the asset pack itself, you have to click the

55
00:03:49,560 --> 00:03:52,380
‫dropdown to select the nearest version.

56
00:03:52,380 --> 00:03:55,650
‫And in my case, the nearest version is unreal five early access.

57
00:03:55,650 --> 00:04:00,840
‫So I'm going to select that one and I'm going to go ahead and add that to the project.

58
00:04:00,840 --> 00:04:03,030
‫And you can see it shouldn't take very long.

59
00:04:03,030 --> 00:04:05,220
‫It's doing a little bit of downloading.

60
00:04:05,340 --> 00:04:09,000
‫So if you're on a mac, this is the process for you.

61
00:04:09,000 --> 00:04:13,980
‫Now do watch along if you're on a PC as well, because this can be useful to know how you can bring

62
00:04:13,980 --> 00:04:18,390
‫across assets from another project, not just from the marketplace.

63
00:04:18,390 --> 00:04:25,890
‫So go ahead and download the Mac Props Zip, which is against this lecture and go ahead and extract

64
00:04:25,890 --> 00:04:26,430
‫it somewhere.

65
00:04:26,430 --> 00:04:30,660
‫In my case, I'm extracting it to my downloads folder and when that's done, you're going to end up

66
00:04:30,660 --> 00:04:33,420
‫with a folder containing a new project.

67
00:04:33,420 --> 00:04:37,800
‫So double click on that new project to open it in your engine version.

68
00:04:37,800 --> 00:04:43,710
‫This project version is in Unreal Engine five, so you'll need Unreal Engine five or later, and you

69
00:04:43,710 --> 00:04:45,330
‫may need to upgrade the project.

70
00:04:45,330 --> 00:04:50,580
‫When you try and open it, when you open it, you're going to be greeted by this, the default map.

71
00:04:50,580 --> 00:04:51,420
‫But that doesn't matter.

72
00:04:51,420 --> 00:04:55,680
‫What we're going to do is we're going to click down in the bottom left on the content browser.

73
00:04:55,680 --> 00:05:01,020
‫And you can see there is the industry props pack six folder in here, which has got all the same stuff

74
00:05:01,020 --> 00:05:03,330
‫that was in the asset pack from the store.

75
00:05:03,570 --> 00:05:05,400
‫So you're going to right click on that.

76
00:05:05,400 --> 00:05:13,080
‫Then you're going to go to the migrate button and you're going to just check that all these assets are

77
00:05:13,080 --> 00:05:14,040
‫indeed selected.

78
00:05:14,040 --> 00:05:22,530
‫You click, okay, and then you need to navigate to your project folder, which in my case is here and

79
00:05:22,530 --> 00:05:24,990
‫I can go down into the warehouse wreckage.

80
00:05:24,990 --> 00:05:30,900
‫I need to go down into the same folder that has the new project and then I need to go into the content

81
00:05:30,900 --> 00:05:32,280
‫folder within it.

82
00:05:32,280 --> 00:05:34,110
‫Then you can select that folder.

83
00:05:34,790 --> 00:05:37,970
‫And you can see a successful log message pops up.

84
00:05:37,970 --> 00:05:42,050
‫And if you go over into your warehouse wreckage project, open up your content drawer.

85
00:05:42,080 --> 00:05:47,690
‫You should now see the industry props pack six in there like the PC folks.

86
00:05:48,320 --> 00:05:54,890
‫So once that has downloaded and completely finished adding to the project, we can go back over into

87
00:05:54,890 --> 00:05:57,450
‫Unreal and have a look at the content draw.

88
00:05:57,470 --> 00:06:02,420
‫And by the way, you can bring this up with control space as well if you want a quick access.

89
00:06:02,420 --> 00:06:05,600
‫Now you can see that next to the Starter Pack folder.

90
00:06:05,600 --> 00:06:11,090
‫If we're in our content folder, there is now an industry props pack six folder.

91
00:06:11,090 --> 00:06:17,810
‫So we can click into that and we can open up the maps and have a look at the showcase level just to

92
00:06:17,810 --> 00:06:20,540
‫see what kind of stuff is included here.

93
00:06:20,570 --> 00:06:24,800
‫Now, for some strange reason, in my version of Unreal, if I just go ahead and double click on the

94
00:06:24,800 --> 00:06:31,370
‫showcase, it's going to spend a very long time here preparing to load up the level, so I wouldn't

95
00:06:31,370 --> 00:06:32,630
‫recommend doing it this way.

96
00:06:32,630 --> 00:06:35,120
‫You're going to be wasting a lot of life.

97
00:06:35,120 --> 00:06:41,420
‫So what I'm going to do is I'm going to go ahead and just quit this task in the task manager because

98
00:06:41,420 --> 00:06:44,390
‫I can't really quit it any other way while it's trying to load the level.

99
00:06:44,630 --> 00:06:47,300
‫And then I'm going to go ahead and reopen.

100
00:06:47,570 --> 00:06:50,240
‫And once that's open up again, we can go back to our content draw.

101
00:06:50,240 --> 00:06:55,400
‫And the trick here, I don't quite know why this works, but if you right click on the showcase first,

102
00:06:55,400 --> 00:07:00,710
‫you can see that in the preparing the right click menu, it's doing a little bit of that work that it's

103
00:07:00,710 --> 00:07:03,050
‫going to do when we first opened the level.

104
00:07:03,050 --> 00:07:08,210
‫So what happens is it comes up with the right click menu and then it has this little drop down pop up

105
00:07:08,210 --> 00:07:10,790
‫at the bottom that says it's preparing shaders.

106
00:07:10,790 --> 00:07:16,670
‫So what you can now do is you can write, you can just double click on the showcase and it opens instantaneously,

107
00:07:17,150 --> 00:07:22,280
‫but you can see that the showcase level doesn't yet feature any of the materials.

108
00:07:22,280 --> 00:07:27,440
‫But as it is preparing the materials and shaders over here in the bottom right, you can see that they're

109
00:07:27,440 --> 00:07:30,980
‫slowly starting to pop in one at a time.

110
00:07:31,250 --> 00:07:33,920
‫So there's still more going on with the shaders at the moment.

111
00:07:33,920 --> 00:07:40,280
‫But right now we can already see the shape and general color of the objects in this scene.

112
00:07:40,280 --> 00:07:45,860
‫There's a lot of barrels which I think I'm going to make heavy use of some crates, and definitely these

113
00:07:45,860 --> 00:07:49,220
‫racks are going to be fun to try and knock over.

114
00:07:49,220 --> 00:07:54,770
‫So let's go back to the starter content map that we were using so far.

115
00:07:54,800 --> 00:08:01,550
‫So we'll go back to our content folder all the way back up and then we're going to go into starter content

116
00:08:01,550 --> 00:08:04,580
‫and maps and then minimal default.

117
00:08:04,580 --> 00:08:09,710
‫And what I want to do is show you just how easy it is to bring in some assets from that pack.

118
00:08:09,710 --> 00:08:15,650
‫What we can do is go into the content folder again into the industry props pack, this time into the

119
00:08:15,650 --> 00:08:16,850
‫meshes folder.

120
00:08:16,850 --> 00:08:23,480
‫And in here you can see all of the assets from that pack, such as these barrels.

121
00:08:23,480 --> 00:08:29,720
‫And all you have to do is drag one of these into the scene and boom, there you go, you've got a barrel

122
00:08:29,720 --> 00:08:35,870
‫from that asset pack and you can enable physics and you can do all the things we could do with the other

123
00:08:35,870 --> 00:08:37,190
‫objects in this scene.

124
00:08:37,190 --> 00:08:40,790
‫So let's take the challenge of knocking down some assets.

125
00:08:40,790 --> 00:08:46,850
‫I'd like you to place some assets in your starter content scene, enable physics on them, and you can

126
00:08:46,850 --> 00:08:51,050
‫potentially tweak the mass or whatever you want to do with them and try knocking them down and see if

127
00:08:51,050 --> 00:08:54,830
‫you can have a bit of a fun experience from these new assets.

128
00:08:54,830 --> 00:08:56,330
‫Pause video and have a go.

129
00:08:59,830 --> 00:08:59,980
‫Uh.

130
00:09:00,070 --> 00:09:06,960
‫Okay, well, come back so we can go ahead and add a few more barrels of different types and just see

131
00:09:06,960 --> 00:09:08,420
‫what these are like.

132
00:09:08,430 --> 00:09:16,830
‫We can also add a box or two, like, so we can even stack some barrels on top of the box, like.

133
00:09:16,830 --> 00:09:22,920
‫So now if you try and stack barrels on top of barrels at this stage, you're going to end up with a

134
00:09:22,920 --> 00:09:29,280
‫little bit of a headache because these barrels currently don't aren't very stable when stacked on top

135
00:09:29,280 --> 00:09:29,820
‫of each other.

136
00:09:29,820 --> 00:09:33,780
‫But there is a way to improve that and we will be doing that later on.

137
00:09:33,780 --> 00:09:38,340
‫So we're just going to go ahead and select all of these, make sure in the details pane we have the

138
00:09:38,340 --> 00:09:42,630
‫physics filter selected and then click simulate physics on those.

139
00:09:42,630 --> 00:09:45,660
‫Then we can hit play and we can see, there you go.

140
00:09:45,660 --> 00:09:47,790
‫I told you that those barrels aren't very stable.

141
00:09:47,790 --> 00:09:49,440
‫They just pop a little bit.

142
00:09:49,440 --> 00:09:52,080
‫And possibly the fact that our character was in the middle didn't help.

143
00:09:52,080 --> 00:09:57,960
‫So we're going to move player start back a little bit like so and then we go ahead and hit play and

144
00:09:57,960 --> 00:10:03,390
‫yeah, they're still not very stable, but we can shoot these things and have a little bit of fun.

145
00:10:03,390 --> 00:10:09,910
‫This crate seemed way too light for my liking, so I'm just going to adjust its mass and rack, rack

146
00:10:09,930 --> 00:10:12,780
‫it up to 400 and see if that's any better.

147
00:10:12,780 --> 00:10:18,240
‫Now, if I shoot the crate a little bit better, I still think maybe a thousand kilograms for that crate

148
00:10:18,270 --> 00:10:19,110
‫would be enough.

149
00:10:19,110 --> 00:10:20,820
‫So making it one metric ton.

150
00:10:20,820 --> 00:10:26,550
‫Now, if we try knocking down the crate, it reacts a lot more slowly and as I would expect a crate

151
00:10:26,550 --> 00:10:28,320
‫of that size to react.

152
00:10:28,350 --> 00:10:28,860
‫Great stuff.

153
00:10:28,860 --> 00:10:35,670
‫We've got a bit more fun going on now in our scene with some of the assets that we've chosen ourselves.

154
00:10:35,670 --> 00:10:37,200
‫I'll see you in the next lecture.

