Code Enchanter is a tool designed to improve your Unity application's performance and memory usage by applying best practices and optimizations to your code. It searches all C# script files, identifies areas for improvement, and makes minor changes to enhance CPU and memory efficiency while preserving your code style and comments.
This tool is ideal for non-programmers, mobile and VR developers, and novice users who want to focus on what's important without worrying about code optimization. With Code Enchanter, you can:
- Convert operator comparisons to method ones
- Comment out empty Unity callback methods
- Comment out empty destructors
- Convert foreach loops to for loops
- Convert distance comparisons to squared ones
- Convert string concatenations to StringBuilder format
- Convert constant number divisions to multiplication
- Convert vector multiplications to floating point ones
- Convert LINQ expressions to plain procedural instructions
By using Code Enchanter, you can take advantage of these optimizations and improve your code's performance and memory usage, allowing you to create more efficient and engaging Unity applications.
Code Enchanter uses Roslyn under Apache license and roslyn-linq-rewrite under MIT license. For more details, see the THIRD-PARTY-NOTICES.TXT file in the package.





