Skip to content

Releases: MorizeroDev/Milease

Milease 3.1.0

15 Feb 15:04
Compare
Choose a tag to compare

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 to And. (40cf71d)

  • MilListView now supports the SlideToTop and SlideToBottom methods.

Milease 2.0.0

12 Jan 13:15
Compare
Choose a tag to compare

Highlights

New Feature: Instant Animator DSL (d5e8f90)
The new version remains compatible with the previous animation definition method but offers the following advantages:

  • Clearer representation of animation start time and duration.
  • No need to skip multiple optional parameters when specifying an easing function, as required in the previous version.
  • Enhanced type safety: the previous method lacked type checks for start and end values.
  • Avoids the use of member name strings, improving maintainability.

Time Source Refactor

Animations now use Time.unscaledDeltaTime by default instead of Time.deltaTime. However, you can still change the time source via Animator.SetTimeSource() if needed. (44566b0, 759b6ef)

Bug Fixes

  • Fixed an issue where reused animators in "To" mode exhibited abnormal behavior. (60c97e0)
  • Resolved a bug causing animation anomalies when transitioning colors in "To" mode. (6afd114)

Other Updates

  • We’ve identified potential issues with inline easing functions in certain projects. Inline easing is now disabled by default. You can enable it by defining the symbol MILEASE_AGGRESSIVE_INLINING_EASING_FUNCTION. (53fd8b0)

Milease 1.0.0

14 Aug 12:53
Compare
Choose a tag to compare

Milease 是一款用于 Unity 的轻量级 UI 辅助工具,能够快速生成丰富的 UI 动画,并支持复杂的动画嵌套。同时,Milease 还通过状态动画机提供了类似 CSS 的 UI 开发体验。内置的 MilAnimatedUI 和 MilListView 组件可用于快速创建带有动画效果的基本 UGUI 控件和无限列表。

Milease 由森零制作组为其游戏《Milthm》开发,旨在满足游戏需求,同时尽可能提供通用的功能。

Milease is a lightweight UI utility for Unity, designed to quickly generate rich UI animations with support for complex animation nesting. It also offers a CSS-like UI development experience through its state animation machine. The built-in MilAnimatedUI and MilListView components enable the rapid creation of animated basic UGUI elements and infinite lists.

Milease was developed by the Morizero for their game "Milthm", but it also aims to provide versatile functionality for broader use.

v0.6.5-alpha

22 Jul 11:31
Compare
Choose a tag to compare