From 400c413976033610eba6aaa4c839c14489df8082 Mon Sep 17 00:00:00 2001 From: Release Automat <> Date: Sat, 4 Jan 2025 02:02:24 +0000 Subject: [PATCH] Release 1.4.1 --- Packages/tlp.udonuianimators/README.md | 10 ++++++++++ Packages/tlp.udonuianimators/Runtime/TlpAnimator.cs | 7 +------ Packages/tlp.udonuianimators/package.json | 4 ++-- README.md | 10 ++++++++++ 4 files changed, 23 insertions(+), 8 deletions(-) diff --git a/Packages/tlp.udonuianimators/README.md b/Packages/tlp.udonuianimators/README.md index 212225f..73bd684 100644 --- a/Packages/tlp.udonuianimators/README.md +++ b/Packages/tlp.udonuianimators/README.md @@ -35,6 +35,16 @@ The used pattern MAJOR.MINOR.PATCH indicates: All notable changes to this project will be documented in this file. +### [1.4.1] - 2024-12-19 + +#### 🚜 Refactor + +- Remove redundant code + +#### ⚙️ Miscellaneous Tasks + +- Bump version + ### [1.4.0] - 2024-12-15 #### 🚀 Features diff --git a/Packages/tlp.udonuianimators/Runtime/TlpAnimator.cs b/Packages/tlp.udonuianimators/Runtime/TlpAnimator.cs index 4d750f4..f18ba72 100644 --- a/Packages/tlp.udonuianimators/Runtime/TlpAnimator.cs +++ b/Packages/tlp.udonuianimators/Runtime/TlpAnimator.cs @@ -85,14 +85,9 @@ protected override bool SetupAndValidate() { [PublicAPI] public float NormalizedTime { - get => Mathf.Clamp01(UdonMath.Remap(StartTime, EndTime, 0, 1, m_CurrentTime)); + get => Mathf.InverseLerp(StartTime, EndTime, m_CurrentTime); set { - m_CurrentTime = Mathf.Clamp( - UdonMath.Remap(0, 1, StartTime, EndTime, value), - StartTime, - EndTime - ); m_CurrentTime = Mathf.Lerp(StartTime, EndTime, value); if (enabled) { diff --git a/Packages/tlp.udonuianimators/package.json b/Packages/tlp.udonuianimators/package.json index 27505db..a49d52f 100644 --- a/Packages/tlp.udonuianimators/package.json +++ b/Packages/tlp.udonuianimators/package.json @@ -1,7 +1,7 @@ { "name": "tlp.udonuianimators", "displayName": "TLP UdonUiAnimators", - "version": "1.4.0", + "version": "1.4.1", "description": "Extendable, programmable animator system that does not rely on Unity Animators.", "gitDependencies": {}, "author": { @@ -10,7 +10,7 @@ }, "vpmDependencies": { "com.vrchat.worlds": "~3.7.5", - "tlp.udonutils": "^11.0.1" + "tlp.udonutils": "^11.0.2" }, "unity": "2022.3" } \ No newline at end of file diff --git a/README.md b/README.md index 212225f..73bd684 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,16 @@ The used pattern MAJOR.MINOR.PATCH indicates: All notable changes to this project will be documented in this file. +### [1.4.1] - 2024-12-19 + +#### 🚜 Refactor + +- Remove redundant code + +#### ⚙️ Miscellaneous Tasks + +- Bump version + ### [1.4.0] - 2024-12-15 #### 🚀 Features