The premiere bug writing tool! Unity code editor that works in Runtime and can be embedded in games.
Video introduction: https://youtu.be/d1Yt6flsLpY
There is a unity package in the releases you can use to import the project if that is more convenient.
- Code completion.
- Compile time error overlay.
- Shows overload options [When the cursor is on a method with overloads].
- Detailed customizable code highlighting(coloring) [There is a BugFoundryColors scriptable object that can be edited].
- Can generate using statements for unrecognized types [This is triggered by ctrl+.];
BugFoundry is also a game, where you have to write code to complete challenges. There are three example levels currently you can go trough, or see the second portion of the video where I do that.
- This will not work on all platforms, although I have not done the research to figure which ones it will work on. I have only validated windows builds so far.
- Currently there no undo/redo for text editing. This should be somewhat straight-foreword and will be working on it soon. That or figure out a different text editor.
- BugFoundry is still work in progress, feel free to leave bug reports and suggestions.
The editor and console section can be placed automatically in a single UI parent or separately. In the editor folder there are two scenes that use a different method each, you can check them for reference.
- ctrl+space makes you force a completion for the location of the caret
- ctrl+. triggers the context actions – the only one now is the add missing using refactoring
- ctrl+r brings you to the first level
- ctrl+pageUp brings you to next level
- ctrl+pageDown brings to to previous level
- Unity version: 2021.3
- The project is using URP – this should not affect the editor itself but the game uses a prefab with three basic objects in it and it should not be difficult to swap those out.
- The project relies on Roslyn dlls, if you already have some of them in your project this will lead to problems that are a bit of a nightmare to resolve.