Unity - Command Console: Debug/Cheats
I've recently worked on a game that required a lot of tests and gameplay adjustments. So I came up with the idea of creating this custom Command Console that can be very helpful for testing any game. It executes commands on instances and static objects/methods, so you can add any command to any class. This system uses Reflection to execute the commands, so it costs some performance during runtime. More about this: https://docs.unity3d.com/6000.0/Documentation/Manual/dotnetReflectionOverhead.html I tried to reduce as much as possible the reflection overhead by caching the types and assemblies names in a ScriptableObject and just getting what is necessary from the reflection system. If you want to use this in your project, you need to set up the package before starting to use it. I demonstrate how to do that in the video. You can get the package and source code files here: https://github.com/Lasanha-Dev/Unity-CommandConsole You can check the .Net Trie implementation here: https://github.com/gmamaladze/trienet 00:00 How To Setup 06:00 Demonstration 18:00 Type Commands 22:55 Commands Manager 28:49 ConsolePanelController 39:33 Resources Folder 40:22 CommandMethodDefinition 45:00 Adding Custom Commands 49:25 Fixing GetType 52:00 Testing
Download
0 formatsNo download links available.