Daily Unreal Column #82 - RunCommandlet
Creating custom commandlets and iterating on them was quite a pain. Epic has improved the a user experience in the latest Unreal Engine release!
If you don’t know what commandlet is, its basically a class that contains a logic that can be executed via CLI. To run it, one must pass -run
parameter when booting the editor. For example:
UE5Editor.exe -run=FixRedirectors
This will run the FixRedirectors
commandlet.
The problem with that is when you are iterating on your commandlet, you must boot the editor from scratch every time you make any change.
Starting release 5.5, there is now a console command that allows you to run a commandlet directly from the editor: RunCommandlet
.
This means that you can change your code, use live coding to compile the changes and use that console command to run your commandlet directly from the editor.