 So far every time we've wanted to make a change to our material We've had to save it and wait for it to save which takes time and then it will update on the landscape There is a better way of working than this though And it can allow you to kind of update things on the fly. You can create little sliders You can have things Change instantly and it's also with how you set your material up and to do that you change things from being constant So for instance our roughness is a constant It's a constant number of zero point seven five and you can change it to a scalable parameter So we're going to change it to a scalar and then you'll be able to change out with a little slider Which will be cool So we're going to get straight into that because this steps going to be a little bit longer than the previous ones so as I've said this one here is we can see what's it called is called a constant and We're going to convert this so I'm going to right-click on it and I'm going to convert it to a parameter So I'll give that a click And we can see now annoyingly it doesn't fit in the comment anymore. So let's resize that lovely so this now is called a Well, it is it's a scalar parameter. So if we wanted to search for a new one we could search for better typing change So there's the scalar parameter So we could just create a new one. We don't always have to convert from a constant But it's asking for a name and this is whatever you call this will be what it's called when you're editing it in the material instance so Make sure you give it a descriptive name. So I'm going to call it Hang on let me click on it. There we go So I'm going to call it roughness and then I'll know what it's called and then we can sell some Values here. So the default value of zero point seven five is what I had it set to previously and I'm going to leave it at that The slider minimum I'm going to lead to zero because as I covered earlier the roughness values go on a scale from zero to one But what that means for the slider max is that I'm going to set that to one because I don't want the slider to go above one Okay, so that's everything we need to do to set up the roughness as a parameter So what I need to do now is save that And when that's done saving we're going to go back into the level editor and create an instance of this material that we can tweak on the fly So that's done saving. Let's move back into the level editor and I'm going to go to my materials folder Okay, so this now because I've got parameters in it. I will start to think of this as my master material So if you're working with materials like that, you don't actually Assign your master material to the mesh you assign an instance of it So you can have one mass material and create dozens of instances of that and in fact I've seen it done where someone just created one one mass material for their entire level and All the different things that they needed to put materials on were done with different instances It was very clever very efficient So what I'm going to do then is create an instance from this to do that. I just need to right-click on it and At the top there it says create a material instance, which we want to do When it creates it it will very much want to prompt you to name it now I'm happy with the default name of this which will be the same name, but it'll add instance to the end so m underscore landscape practice underscore inst for instance and That will now allow me to make changes on the fly but before I can see that working. I Need to assign this instance to this mesh here So you can see I've got the yellow outline which means I've got it selected and Here is where it's telling me which material I've got assigned Which is the m underscore landscape practice. So that's my master one So I'll just select the instance over here and then using this little arrow. I can say use that one instead Lovely so you won't see anything change because at the moment the master material and the instance material are identical But let's open this up. So we'll double-click on it It will probably try and fill the whole screen Okay So you can see that this has taken up the entire screen Which is not what I want because I want to be able to see both what's in here this editor And I also want to be able to see what's in the level editor so I can see what effect my changes are having So to do that. I'm just going to drag this down here Like so And now I can see all of the settings in here that I want to get to And I can see the landscape and that will show me what effect it's having Okay, so you can see the roughness parameter that we've set up is available But we can't get change anything because we've not enabled this parameter. So I'm going to tick that box And Now it's ready. It's all like, okay. Let's do this Okay, so Let's just say that I wanted to do something ridiculous just to make the point So let's say that this is set to 0.75, which is mostly nice But let's say I wanted to make this 0.2. I can tap that in presenter and that will instantly update on here So I can see what effect that's having Now I can also you can see when I put my mouse over here There we go It will let me click and drag Which I would like to show you but this is now the fourth time I've tried to record this little bit And it's crashing every time which is driving me mental. So You can click and drag and it's worked for me every other time I think it's because I've got the screen capture software on as well Um, so I'm just going to keep that a miss because I can't take it crashing anymore. It's making me die inside Um, so you can now set this to whatever you want. So I think I actually prefer 0.8 On this so a little bit rougher than I had it previously And then when you're happy with whatever you've set that parameter to You can save it And that will stay like that. So that means that's something that you can change interactively Whenever you want it's really cool What we're going to do is we're going to take it a step further In the next step and what we'll do is we'll set up Another parameter With this is going to take a couple of nodes to do that and that's going to control How the tiling of the grass works so it can kind of make the grass Texture bigger or smaller on the landscape. So that's what we're covering next I'll see you there for that one Thanks for watching If you really want to take your learning further than I can cover in this series Then I highly recommend checking out plural site They have loads of really detailed video courses covering game art and game development using unreal engine 4 When I learned how to use unreal a couple of years ago This is where I went and I log in regularly to take a new course and improve my skills I recommend checking out the introduction to unreal engine 4 course by joshua kinning This is really good and offers a good overview of what you can do in unreal You can get a free 10 day trial by using my link in the video description And you get full access to all of their courses for that time at the end of your 10 days You can either subscribe for more or cancel totally up to you. It's got to be worth a free trial though, right? I'd like to say a massive thank you to my patrons Your support helps me to keep making videos like this one and I really appreciate each and every one of you It really blows my mind that people will support my channel and my work by pledging their money through patreon So again, thank you all so so much If you aren't already a patron and you'd like to offer your support, then please go to patreon.com forward slash shane whitington