HighLights
Milease 3.1.0 introduces two entirely new animation runtime solutions for both the Mono backend and IL2CPP.
Compared to version 2.0.0, both solutions reduce performance overhead by approximately 90%.
Warning
BREAK CHANGE
- Due to technical compatibility issues, animation generation statements from v1 (including most Milease and MileaseTo extension methods) are no longer supported.
- The structure of MileaseHandleFunction has changed.
- The position of AnimatorResetMode has been moved.
- Animation operations for
string
are now supported. Instead of being directly replaced at the endpoint, it now features a typewriter effect (IL2CPP solution only).
Expression-Driven Animation Updater for Mono Backend (977ecb9)
Starting from version 3.0, Milease has refactored its animation control code, which is now driven by "Expressions".
Milease compiling animation control code via Expressions
reduces execution time by approximately 90% compared to using pure reflection.
However, compilation itself can be time-consuming. Fortunately, you can generate a preload script for animation control code by clicking "Milease -> Generate Milease warming up script" in the menu. This will compile the control code in advance, ensuring smoother gameplay.
Source Code Generation Solution for IL2CPP (faced16)
Due to compatibility and performance issues of Expression
on IL2CPP, Milease has to use an alternative approach to generate animation calculation functions to reduce runtime overhead.
When introducing Milease into your project for the first time, you need to import the "il2cpp support" folder inside the Milease directory. Then, you can generate animation calculation source code via the "Milease" menu options.
Additions:
-
You can manually specify types and namespaces to exclude from generation in
GenerationDisableList.cs
. -
You can specify the members for which accessors should be generated in
AccessorGenerationList.cs
to improve runtime efficiency.
Bug Fixes
- Fixed an issue where mouse scrolling did not trigger the OnScrollDone event. (80bc356)
Optimizations & Adjustments
-
Added built-in templates for some UI components, which can now be generated through the Unity menu. (4e056ce)
-
MilListView
now supports attaching a scrollbar. (bbc9d6d) -
For better clarity, the
While
function is now deprecated and has been renamed toAnd
. (40cf71d) -
MilListView
now supports theSlideToTop
andSlideToBottom
methods.