![]() ![]() To make sure we get the parameters name right we are going to copy and paste each parameter into the corresponding set scalar parameter value. Now i for the reason I asked you to keep the material screen open. Ok so hopefully dragging it off of your material variable as set it in the target pin hole if not please connect them now This will let us control our material parameters we set up in our material then go ahead and do a ctrl drag and drop of your material in and pull off its pinĪnd in the search look up SET SCALAR PARAMETER VALUE Now connect the return value to your material variable. Yeah automatic set if you hold ctrl and drag it will automatically get Hold down alt and click and drag your material variable onto the graph Now that you got all the variables do a quick compile. When naming these floats I kept the same names I used in the Material You will need 3 floats and repeat the same process you went threw Since we are over creating variables lets go ahead and create the variables we need to set our materials parameter variables. Now we need to make sure other blueprints can see this variable when casting to this blue printĬlick on that Eye to the left of your new variable or you can just check editableĪdding tool tips can be very beneficial when several people are working with the project!!!Īlso if this actor is going to have a lot of variables functions so forth it would be could to give it a category since these will be variables you may want to change latter. Type in : Material Instance Dynamic NEEDS TO BE DYNAMIC To keep your blueprint clean go ahead and add a new variable in the variable type selection scroll down In the parent selection Pick the material you just created Right click on the graph and type in the search Go ahead and open up your actor blue print you are wanting to use and go into your construction script.( I am placing it in here because I want it to control the color each time it is created) Now that the material is set up we need to set up the ability to control it on the actor.ĭON’T CLOSE OUT YOUR MATERIAL WE WILL SE IT TO MAKE SURE WE CALL THE RIGHT PARAMETER NAME!!! Also so many player material controllable variables. This is a good starting point now you can play and see if you can set up a saturation and brightness. I like complete white, so a 1 value in all alphas. Play around with the alphas to get a good idea of the 0-1 value you will want to use to start with. Now add the result from red and blue together, next add that to the green place that into your base color. Then take the corresponding alpha parameters to the alpha slots in the lerp. When you put the color into the lerp make sure you put it into the b slot You will want to create lerps to be able to control how much of this color channel is add into the Base Color ![]() Next create three 1 vector parameters (Hold 1 and click in the graph) Your going to want to set each one up for aĪbsolute “True Red” (go to the color picker “lol” and set Red to 1 and blue and green to 0ĭo this to make your RGB channel colors these do not need to be parameters Ok I just tested my Theory of using alpha parameters to get my color and it works. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |