diff --git a/.github/README.md b/.github/README.md index a900fa0..7d11193 100644 --- a/.github/README.md +++ b/.github/README.md @@ -6,7 +6,7 @@ ![license](https://img.shields.io/github/license/ls9512/UTween) [![openupm](https://img.shields.io/npm/v/com.ls9512.utween?label=openupm®istry_uri=https://package.openupm.com)](https://openupm.com/packages/com.ls9512.utween/) -[![Release Version](https://img.shields.io/badge/release-1.0.3-red.svg)](https://github.com/ls9512/UTween/releases) +[![Release Version](https://img.shields.io/badge/release-1.1.1-red.svg)](https://github.com/ls9512/UTween/releases) ![topLanguage](https://img.shields.io/github/languages/top/ls9512/UTween) ![size](https://img.shields.io/github/languages/code-size/ls9512/UTween) ![last](https://img.shields.io/github/last-commit/ls9512/UTween) diff --git a/.github/README_CN.md b/.github/README_CN.md index 3175a8a..83f4531 100644 --- a/.github/README_CN.md +++ b/.github/README_CN.md @@ -7,7 +7,7 @@ ![license](https://img.shields.io/github/license/ls9512/UTween) [![openupm](https://img.shields.io/npm/v/com.ls9512.utween?label=openupm®istry_uri=https://package.openupm.com)](https://openupm.com/packages/com.ls9512.utween/) -[![Release Version](https://img.shields.io/badge/release-1.0.3-red.svg)](https://github.com/ls9512/UTween/releases) +[![Release Version](https://img.shields.io/badge/release-1.1.1-red.svg)](https://github.com/ls9512/UTween/releases) ![topLanguage](https://img.shields.io/github/languages/top/ls9512/UTween) ![size](https://img.shields.io/github/languages/code-size/ls9512/UTween) ![last](https://img.shields.io/github/last-commit/ls9512/UTween) diff --git a/Core/Script/EaseFunctionExtension/EaseTypeExtension.cs b/Core/Script/EaseFunctionExtension/EaseTypeExtension.cs index 6b44c83..0439771 100644 --- a/Core/Script/EaseFunctionExtension/EaseTypeExtension.cs +++ b/Core/Script/EaseFunctionExtension/EaseTypeExtension.cs @@ -12,6 +12,16 @@ namespace Aya.Tween [EnumClass("EaseType")] public class EaseTypeExtension { +#if UNITY_EDITOR + [UnityEditor.InitializeOnLoadMethod] +#else + [UnityEngine.RuntimeInitializeOnLoadMethod] +#endif + public static void Init() + { + SerializeEnumAttribute.CacheSerializeEnum(typeof(EaseType)); + } + [EnumProperty("Flash", "Ease Flash 01")] public const int EaseFlash01 = 100; [EnumProperty("Flash", "Ease Flash 010")] diff --git a/package.json b/package.json index ad08304..bc6e9d7 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "com.ls9512.utween", "displayName": "UTween", "description": "UTween is an interpolation animation component for Unity. You can quickly configure animations through built-in components or write animations through code.", - "version": "1.0.3", + "version": "1.1.1", "unity": "2019.4.3f1", "license": "MIT", "repository": {