Publisher | Nice Script Editor |
---|---|
File size | 8.08MB |
Number of files | 61 |
Latest version | 1 |
Latest release date | 2024-01-26 12:59:10 |
First release date | 2024-01-26 12:59:10 |
Supported Unity versions | 2018.4.2 or higher |
A tool to save time waiting for script reloads !
Is it possible to reduce the wait time for script reload? The answer is yes!
My solution was to use C# reflection to achieve this.
Why use C# reflection ?
1. Flexibility
From a single dll to an entire project,
take advantage of reflection to reduce wait time
2. Controllability
In fact, you are using reflection,
so you know where to use it and control it
3. More features (the most important reason)
In the dll you want to reflect, you can do anything,
add or delete classes, members, functions, etc.,
all can be achieved in reflection
Disadvantages of using reflection
1. Some adjustments to the code are required to support reflection,
Some extra code needs to be added(very little actually)
2. If reflection is used incorrectly, it can easily lead to additional errors.
Requires some additional time to implement and debug
3. It increases memory overhead, especially when reflecting large dlls,
or when loading large files in reflectoin, In fact, a large dll can be broken
into smaller dlls and then use reflection on the smaller dlls.
Summary
To be honest, reflection isn't perfect and may not be user-friendly
for first-time users.
When I started using it, I also encountered some running
errors caused by reflection.
Then I started with the simplest and made sure it worked,
and now it has become one of my important time-saving tools.
this tool is great for just starting a project or writing some test code, or writing
some auxiliary tools, If the project is nearing its end, it depends on your time
Give it a try and when you get familiar with it,
it might just become your most effective time-saving tool!
Suggestion
Start with the simplest code, figure out how it works, make sure it works properly.
It is not recommended to use reflection for the entire project.
Complexity and errors increase unnecessarily. Usually you only need
to use reflection for a few DLLs that change frequently to save time.
Most dlls probably don't change very often, so keeping them simple is
easier to control and more efficient.
Finally, please watch the video to directly experience the effect of this tool
NOTE:
- You need to have .NET SDK (6.0 or higher version) installed on your computer before using this tool.
- Support Unity 2019 3.0 or higher version