QUICK DEV TIP #10 UE4 - BLUEPRINTS - SUBCATEGORIES

This week’s Quick Dev Tip is a useful one which I never see people talking about!

You probably know about adding variables to Categories, but did you know that you can also then add them to subcategories. This is perfect for if you have a large number of variables as it can help keep things orderly and allows you to quickly find the things you are after.

 

First off, you can set a variables main category by selecting it, then in its details panel editing the Category text field, which by default, is set to default. You can replace this text with whatever you want, below I am using “Shopkeep”. If you set instance editable to true here you will expose this variable for later on.

10_QDT_SubCat_Blog00.JPG
 

In the variable list, you will now see that your variable has been placed under the category you just named. You can drag other variables directly into this category or set them through the details panel in a similar way. Clicking the drop-down on the Category text field will bring up a list pre-existing category names that you can choose from.

10_QDT_SubCat_Blog02.JPG
 

If you place your actor into the scene and have exposed the variable (setting Instance Editable in the detail panel) then you should now see this variable under your new category.

10_QDT_SubCat_Blog03.JPG
 

Now for the interesting bit. You can add a subcategory by selecting the variable and returning to the Category text field. Now you want to use Shift + \ to add a Verticle Bar ( | ). Then you can write the name of the subgroup that you want, in my case “general”.

10_QDT_SubCat_Blog04.JPG
 

As you can see a new subcategory is born and the variable is placed inside it.

10_QDT_SubCat_Blog05.JPG
 

If we return to the exposed variables on an actor placed in the scene, we can also see it is in the subcategory here as well.

10_QDT_SubCat_Blog06.JPG
 

You can add as many subcategories as you want.

10_QDT_SubCat_Blog07.JPG

This is a really useful technique if you have an actor that has a lot of different functionality that you want to keep split into separate groups, so variables are easier to find and work with.

If you want more tips and tricks make sure to give me a follow on Twitter @cbGameDev

Also, check out the parkour game I'm solo developing called Freerunners. Give it a wishlist if you like the way it looks!: https://store.steampowered.com/app/1430330/Freerunners/