deleting Dev.Tool
Last updated
Last updated
Before I begin this chapter, there is a very important thing you want to know: that this entire Dev.Tool
functionality(and its widget in the Menu) could be easily switched On
/Off
with a single click.
In WBP_Options
, open Event Graph
, and in the Class Defaults
, there is only one Bool variable which controls entire thing:
This whole process takes only several minutes and, you can easily ignore and skip this chapter, but:
Dev.Tool
and all its related functionality entirelyIt's intent was mainly for the demonstration purposes. And I mean deleting only this in-game part. Actual Widget Type Selection
functionality in the Editor will remain, don't worry.
Why delete it? - for sake of reducing code weight, and decreasing probability of potential bug-prone situations in the future in case you'd like to adjust/extend functional parts of the Modular Options.
Now simply follow the steps in which you delete certain things.
Step 1 of 7 removing Dev.Tool
itself in Options
:
Step 2 of 7 removing it from OptionBase
:
Step 3 of 7 removing from Toggle
:
Step 4 of 7 removing from Selector
:
Step 5 of 7 remove all related functions from the Global Functions
:
Step 6 of 7 remove implementations from your Game Instance
:
Step 7 of 7 deleting files in Blueprints folder:
And that's it! Good job. Now overall amount of the code significantly reduced!