mirror of
https://github.com/mob-sakai/UIEffect.git
synced 2026-12-01 10:12:38 +08:00
Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 95500b6c73 | |||
| ab952812d6 | |||
| aa0bf72bd4 | |||
| 76f1478523 | |||
| afbfcdd40c | |||
| c34c2ec0c2 |
@@ -34,6 +34,7 @@ jobs:
|
|||||||
working_directory: Packages/src
|
working_directory: Packages/src
|
||||||
extra_plugins: |
|
extra_plugins: |
|
||||||
@semantic-release/changelog
|
@semantic-release/changelog
|
||||||
|
@semantic-release/exec
|
||||||
@semantic-release/git
|
@semantic-release/git
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ github.token }}
|
GITHUB_TOKEN: ${{ github.token }}
|
||||||
|
|||||||
@@ -12,13 +12,28 @@
|
|||||||
"@semantic-release/commit-analyzer",
|
"@semantic-release/commit-analyzer",
|
||||||
"@semantic-release/release-notes-generator",
|
"@semantic-release/release-notes-generator",
|
||||||
"@semantic-release/changelog",
|
"@semantic-release/changelog",
|
||||||
|
[
|
||||||
|
"@semantic-release/exec",
|
||||||
|
{
|
||||||
|
"prepareCmd": "node ./Samples~/sync-sample-package-versions.js ${nextRelease.version}"
|
||||||
|
}
|
||||||
|
],
|
||||||
[
|
[
|
||||||
"@semantic-release/npm",
|
"@semantic-release/npm",
|
||||||
{
|
{
|
||||||
"npmPublish": false
|
"npmPublish": false
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
[
|
||||||
"@semantic-release/git",
|
"@semantic-release/git",
|
||||||
|
{
|
||||||
|
"assets": [
|
||||||
|
"CHANGELOG.md",
|
||||||
|
"package.json",
|
||||||
|
"Samples~/**/package.json"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
"@semantic-release/github"
|
"@semantic-release/github"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,3 +1,28 @@
|
|||||||
|
## [5.12.1](https://github.com/mob-sakai/UIEffect/compare/5.12.0...5.12.1) (2026-11-24)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* Added an option to Project Settings to disable color correction and revert to the color output used in version 5.11.8 or earlier ([aa0bf72](https://github.com/mob-sakai/UIEffect/commit/aa0bf72bd429eb2aa173f316e5863bb9bee2eb4e)), closes [#414](https://github.com/mob-sakai/UIEffect/issues/414)
|
||||||
|
|
||||||
|
# [5.12.0](https://github.com/mob-sakai/UIEffect/compare/5.11.10...5.12.0) (2026-11-17)
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* "Additional Resource" can be installed as a package instead of importing as a sample ([afbfcdd](https://github.com/mob-sakai/UIEffect/commit/afbfcdd40c5775390643d9c649e2bc1f223148f8))
|
||||||
|
|
||||||
|
## [5.11.10](https://github.com/mob-sakai/UIEffect/compare/5.11.9...5.11.10) (2026-11-17)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* added "Show Readme" to the auto-import menu ([27629cd](https://github.com/mob-sakai/UIEffect/commit/27629cdd7c9dd64c053a92fcd69119efffe4a127))
|
||||||
|
* fix font path in demo ([3ca1214](https://github.com/mob-sakai/UIEffect/commit/3ca121423382668eee335fbb8bf8308b7f04159b))
|
||||||
|
* fix potential NPE in code ([6e8aaf3](https://github.com/mob-sakai/UIEffect/commit/6e8aaf36f00e4a42f7b9d6f79e065d4022b567c2))
|
||||||
|
* fix potential NPE in code ([d41d1ad](https://github.com/mob-sakai/UIEffect/commit/d41d1ad21f3b4ce38bb1fae870cf8621ed61a1e8))
|
||||||
|
* fix project setting inspector ([d359086](https://github.com/mob-sakai/UIEffect/commit/d359086ed4baaf2bc0bfb64742492e3ea6d6d4b6))
|
||||||
|
|
||||||
## [5.11.9](https://github.com/mob-sakai/UIEffect/compare/5.11.8...5.11.9) (2026-11-14)
|
## [5.11.9](https://github.com/mob-sakai/UIEffect/compare/5.11.8...5.11.9) (2026-11-14)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ namespace Coffee.UIEffects.Editors
|
|||||||
private SerializedProperty _runtimePresets;
|
private SerializedProperty _runtimePresets;
|
||||||
private SerializedProperty _runtimePresetsV2;
|
private SerializedProperty _runtimePresetsV2;
|
||||||
private SerializedProperty _useHDRColorPicker;
|
private SerializedProperty _useHDRColorPicker;
|
||||||
|
private SerializedProperty _enableColorCorrection;
|
||||||
private ShaderVariantRegistryEditor _shaderVariantRegistryEditor;
|
private ShaderVariantRegistryEditor _shaderVariantRegistryEditor;
|
||||||
private UIEffect[] _legacyPresets;
|
private UIEffect[] _legacyPresets;
|
||||||
private bool _expandRuntimePresets;
|
private bool _expandRuntimePresets;
|
||||||
@@ -25,6 +26,7 @@ namespace Coffee.UIEffects.Editors
|
|||||||
{
|
{
|
||||||
base.OnEnable();
|
base.OnEnable();
|
||||||
_legacyPresets = UIEffectProjectSettings.LoadEditorPresets();
|
_legacyPresets = UIEffectProjectSettings.LoadEditorPresets();
|
||||||
|
_enableColorCorrection = serializedObject.FindProperty("m_EnableColorCorrection");
|
||||||
_useHDRColorPicker = serializedObject.FindProperty("m_UseHDRColorPicker");
|
_useHDRColorPicker = serializedObject.FindProperty("m_UseHDRColorPicker");
|
||||||
_runtimePresets = serializedObject.FindProperty("m_RuntimePresets");
|
_runtimePresets = serializedObject.FindProperty("m_RuntimePresets");
|
||||||
_runtimePresetsV2 = serializedObject.FindProperty("m_RuntimePresetsV2");
|
_runtimePresetsV2 = serializedObject.FindProperty("m_RuntimePresetsV2");
|
||||||
@@ -69,6 +71,17 @@ namespace Coffee.UIEffects.Editors
|
|||||||
// Legacy Presets
|
// Legacy Presets
|
||||||
DrawLegacyPresets();
|
DrawLegacyPresets();
|
||||||
|
|
||||||
|
// Settings
|
||||||
|
EditorGUI.BeginChangeCheck();
|
||||||
|
EditorGUILayout.PropertyField(_enableColorCorrection);
|
||||||
|
if (EditorGUI.EndChangeCheck())
|
||||||
|
{
|
||||||
|
foreach (var g in Misc.FindObjectsOfType<UIEffect>())
|
||||||
|
{
|
||||||
|
g.SetMaterialContextAllDirty();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Editor
|
// Editor
|
||||||
// Use HDR color pickers.
|
// Use HDR color pickers.
|
||||||
EditorGUILayout.PropertyField(_useHDRColorPicker);
|
EditorGUILayout.PropertyField(_useHDRColorPicker);
|
||||||
|
|||||||
+62
-3
@@ -123,7 +123,7 @@ _This package requires **Unity 2020.3 or later**._
|
|||||||
```
|
```
|
||||||
- To update the package, use Package Manager UI (`Window > Package Manager`) or run the following command with `@{version}`:
|
- To update the package, use Package Manager UI (`Window > Package Manager`) or run the following command with `@{version}`:
|
||||||
```
|
```
|
||||||
openupm add com.coffee.ui-effect@5.9.0
|
openupm add com.coffee.ui-effect@5.12.0
|
||||||
```
|
```
|
||||||
|
|
||||||
### Install via UPM (with Package Manager UI)
|
### Install via UPM (with Package Manager UI)
|
||||||
@@ -132,7 +132,7 @@ _This package requires **Unity 2020.3 or later**._
|
|||||||
- Click `+ > Add package from git URL...` and input the repository URL: `https://github.com/mob-sakai/UIEffect.git?path=Packages/src`
|
- Click `+ > Add package from git URL...` and input the repository URL: `https://github.com/mob-sakai/UIEffect.git?path=Packages/src`
|
||||||

|

|
||||||
- To update the package, change suffix `#{version}` to the target version.
|
- To update the package, change suffix `#{version}` to the target version.
|
||||||
- e.g. `https://github.com/mob-sakai/UIEffect.git?path=Packages/src#5.9.0`
|
- e.g. `https://github.com/mob-sakai/UIEffect.git?path=Packages/src#5.12.0`
|
||||||
|
|
||||||
### Install via UPM (Manually)
|
### Install via UPM (Manually)
|
||||||
|
|
||||||
@@ -147,7 +147,7 @@ _This package requires **Unity 2020.3 or later**._
|
|||||||
```
|
```
|
||||||
|
|
||||||
- To update the package, change suffix `#{version}` to the target version.
|
- To update the package, change suffix `#{version}` to the target version.
|
||||||
- e.g. `"com.coffee.ui-effect": "https://github.com/mob-sakai/UIEffect.git?path=Packages/src#5.9.0",`
|
- e.g. `"com.coffee.ui-effect": "https://github.com/mob-sakai/UIEffect.git?path=Packages/src#5.12.0",`
|
||||||
|
|
||||||
### Install as Embedded Package
|
### Install as Embedded Package
|
||||||
|
|
||||||
@@ -167,6 +167,53 @@ Additional resources can be imported to extend functionality.
|
|||||||
- [Usage with TextMeshPro](#usage-with-textmeshpro)
|
- [Usage with TextMeshPro](#usage-with-textmeshpro)
|
||||||
- [Usage with ShaderGraph](#usage-with-shadergraph)
|
- [Usage with ShaderGraph](#usage-with-shadergraph)
|
||||||
|
|
||||||
|
#### Install Additional Resources as Packages
|
||||||
|
|
||||||
|
Starting with v5.12.0, you can install optional resources as separate UPM packages instead of importing them as samples.
|
||||||
|
This lets you use the features you need without adding their assets to your project's `Assets/Samples` directory.
|
||||||
|
|
||||||
|
> [!TIP]
|
||||||
|
> Use the **same version as the UIEffect package**.
|
||||||
|
> If you have already imported a resource as a sample, delete its corresponding sample from `Assets/Samples/UI Effect/{version}` before installing the package.
|
||||||
|
|
||||||
|
The following optional packages are available from the OpenUPM registry.
|
||||||
|
Choose the package that matches your Unity version and render pipeline, then replace `5.12.0` with your UIEffect package version if needed.
|
||||||
|
|
||||||
|
```sh
|
||||||
|
# TextMeshPro support (Unity 2023.2 or earlier)
|
||||||
|
openupm add com.coffee.ui-effect.textmeshpro-legacy@5.12.0
|
||||||
|
# TextMeshPro support (Unity 2023.3 or later)
|
||||||
|
openupm add com.coffee.ui-effect.textmeshpro@5.12.0
|
||||||
|
# ShaderGraph support (Unity 6, Built-in Render Pipeline)
|
||||||
|
openupm add com.coffee.ui-effect.shadergraph-builtin@5.12.0
|
||||||
|
# ShaderGraph support (Unity 6, URP)
|
||||||
|
openupm add com.coffee.ui-effect.shadergraph-urp@5.12.0
|
||||||
|
# v4 compatible components
|
||||||
|
openupm add com.coffee.ui-effect.v4-compatible-components@5.12.0
|
||||||
|
```
|
||||||
|
|
||||||
|
For manual installation, add the desired package entries to your `Packages/manifest.json` file, install the package through Package Manager, or embed the package in your project.
|
||||||
|
The following is a valid `manifest.json` dependencies example; remove entries for resources you do not need.
|
||||||
|
Use only one TextMeshPro support package, and select the ShaderGraph package for your render pipeline.
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"dependencies": {
|
||||||
|
// TextMeshPro Support (2023.2 or earlier):
|
||||||
|
"com.coffee.ui-effect.textmeshpro-legacy": "https://github.com/mob-sakai/UIEffect.git?path=Packages/src/Samples~/com.coffee.ui-effect.textmeshpro-legacy#5.12.0",
|
||||||
|
// TextMeshPro Support (2023.3, 6000.0 or later):
|
||||||
|
"com.coffee.ui-effect.textmeshpro": "https://github.com/mob-sakai/UIEffect.git?path=Packages/src/Samples~/com.coffee.ui-effect.textmeshpro#5.12.0",
|
||||||
|
// ShaderGraph Support (Unity 6, Builtin):
|
||||||
|
"com.coffee.ui-effect.shadergraph-builtin": "https://github.com/mob-sakai/UIEffect.git?path=Packages/src/Samples~/com.coffee.ui-effect.shadergraph-builtin#5.12.0",
|
||||||
|
// ShaderGraph Support (Unity 6, URP):
|
||||||
|
"com.coffee.ui-effect.shadergraph-urp": "https://github.com/mob-sakai/UIEffect.git?path=Packages/src/Samples~/com.coffee.ui-effect.shadergraph-urp#5.12.0",
|
||||||
|
// v4 Compatible Components:
|
||||||
|
"com.coffee.ui-effect.v4-compatible-components": "https://github.com/mob-sakai/UIEffect.git?path=Packages/src/Samples~/com.coffee.ui-effect.v4-compatible-components#5.12.0",
|
||||||
|
...
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
<br><br>
|
<br><br>
|
||||||
|
|
||||||
## 🔄 Upgrading from v4 to v5
|
## 🔄 Upgrading from v4 to v5
|
||||||
@@ -185,6 +232,10 @@ If upgrading from UIEffect v4 to v5, note the following breaking changes:
|
|||||||
```
|
```
|
||||||
|
|
||||||
2. Import the `v4 Compatible Components` sample from the Package Manager window.
|
2. Import the `v4 Compatible Components` sample from the Package Manager window.
|
||||||
|
> [!TIP]
|
||||||
|
> "Additional Resources" can be installed as a package from v5.12.0 or later.
|
||||||
|
> For more information, please refer to the [Install Additional Resources](#import-additional-resources) section.
|
||||||
|
|
||||||
|
|
||||||
3. All v4 components are obsolete.
|
3. All v4 components are obsolete.
|
||||||
- v4 `UIEffect` component is now `UIEffectV4` component. Change the reference in the code.
|
- v4 `UIEffect` component is now `UIEffectV4` component. Change the reference in the code.
|
||||||
@@ -472,6 +523,10 @@ The `UIEffectReplica` component applies visual effects to UI elements by replica
|
|||||||
|
|
||||||
### Usage with TextMeshPro
|
### Usage with TextMeshPro
|
||||||
|
|
||||||
|
> [!TIP]
|
||||||
|
> "Additional Resources" can be installed as a package from v5.12.0 or later.
|
||||||
|
> For more information, please refer to the [Install Additional Resources](#import-additional-resources) section.
|
||||||
|
|
||||||
To use UIEffect with TextMeshPro, you need to import additional resources.
|
To use UIEffect with TextMeshPro, you need to import additional resources.
|
||||||
When a shader included in the samples is requested, an import dialog will automatically appear.
|
When a shader included in the samples is requested, an import dialog will automatically appear.
|
||||||
Click the `Import` button.
|
Click the `Import` button.
|
||||||
@@ -516,6 +571,10 @@ Click the `Import` button.
|
|||||||
|
|
||||||
### Usage with ShaderGraph
|
### Usage with ShaderGraph
|
||||||
|
|
||||||
|
> [!TIP]
|
||||||
|
> "Additional Resources" can be installed as a package from v5.12.0 or later.
|
||||||
|
> For more information, please refer to the [Install Additional Resources](#import-additional-resources) section.
|
||||||
|
|
||||||
⚠️ ShaderGraph support is available only in Unity 2023.2/6.0 or later.
|
⚠️ ShaderGraph support is available only in Unity 2023.2/6.0 or later.
|
||||||
|
|
||||||

|

|
||||||
|
|||||||
@@ -18,8 +18,12 @@ namespace Coffee.UIEffectInternal
|
|||||||
[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSceneLoad)]
|
[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSceneLoad)]
|
||||||
#endif
|
#endif
|
||||||
private static void Clear()
|
private static void Clear()
|
||||||
|
{
|
||||||
|
lock (s_Caches)
|
||||||
{
|
{
|
||||||
s_Caches.Clear();
|
s_Caches.Clear();
|
||||||
|
}
|
||||||
|
|
||||||
UIExtraCallbacks.onLateAfterCanvasRebuild -= ClearAllCache;
|
UIExtraCallbacks.onLateAfterCanvasRebuild -= ClearAllCache;
|
||||||
UIExtraCallbacks.onLateAfterCanvasRebuild += ClearAllCache;
|
UIExtraCallbacks.onLateAfterCanvasRebuild += ClearAllCache;
|
||||||
}
|
}
|
||||||
@@ -73,14 +77,19 @@ namespace Coffee.UIEffectInternal
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static void ClearAllCache()
|
private static void ClearAllCache()
|
||||||
|
{
|
||||||
|
lock (s_Caches)
|
||||||
{
|
{
|
||||||
foreach (var cache in s_Caches.Values)
|
foreach (var cache in s_Caches.Values)
|
||||||
{
|
{
|
||||||
cache.Clear();
|
cache.Clear();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private static FrameCacheContainer<T> GetFrameCache<T>()
|
private static FrameCacheContainer<T> GetFrameCache<T>()
|
||||||
|
{
|
||||||
|
lock (s_Caches)
|
||||||
{
|
{
|
||||||
var t = typeof(T);
|
var t = typeof(T);
|
||||||
if (s_Caches.TryGetValue(t, out var frameCache)) return frameCache as FrameCacheContainer<T>;
|
if (s_Caches.TryGetValue(t, out var frameCache)) return frameCache as FrameCacheContainer<T>;
|
||||||
@@ -90,6 +99,7 @@ namespace Coffee.UIEffectInternal
|
|||||||
|
|
||||||
return (FrameCacheContainer<T>)frameCache;
|
return (FrameCacheContainer<T>)frameCache;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private interface IFrameCache
|
private interface IFrameCache
|
||||||
{
|
{
|
||||||
@@ -101,19 +111,28 @@ namespace Coffee.UIEffectInternal
|
|||||||
private readonly Dictionary<(int, int), T> _caches = new Dictionary<(int, int), T>();
|
private readonly Dictionary<(int, int), T> _caches = new Dictionary<(int, int), T>();
|
||||||
|
|
||||||
public void Clear()
|
public void Clear()
|
||||||
|
{
|
||||||
|
lock (_caches)
|
||||||
{
|
{
|
||||||
_caches.Clear();
|
_caches.Clear();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public bool TryGet((int, int) key, out T result)
|
public bool TryGet((int, int) key, out T result)
|
||||||
|
{
|
||||||
|
lock (_caches)
|
||||||
{
|
{
|
||||||
return _caches.TryGetValue(key, out result);
|
return _caches.TryGetValue(key, out result);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public void Set((int, int) key, T result)
|
public void Set((int, int) key, T result)
|
||||||
|
{
|
||||||
|
lock (_caches)
|
||||||
{
|
{
|
||||||
_caches[key] = result;
|
_caches[key] = result;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ using UnityEditor.SceneManagement;
|
|||||||
#else
|
#else
|
||||||
using UnityEditor.Experimental.SceneManagement;
|
using UnityEditor.Experimental.SceneManagement;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace Coffee.UIEffectInternal
|
namespace Coffee.UIEffectInternal
|
||||||
|
|||||||
@@ -288,6 +288,13 @@ namespace Coffee.UIEffects
|
|||||||
_isContextDirty = true;
|
_isContextDirty = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void SetMaterialContextAllDirty()
|
||||||
|
{
|
||||||
|
_isContextDirty = true;
|
||||||
|
context.SetGradationDirty();
|
||||||
|
context.SetTransitionGradationDirty();
|
||||||
|
}
|
||||||
|
|
||||||
internal void ReleaseMaterial()
|
internal void ReleaseMaterial()
|
||||||
{
|
{
|
||||||
MaterialRepository.Release(ref _material);
|
MaterialRepository.Release(ref _material);
|
||||||
|
|||||||
@@ -851,8 +851,16 @@ namespace Coffee.UIEffects
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static Color ApplyColorSpace(Color color)
|
private static Color ApplyColorSpace(Color color)
|
||||||
|
{
|
||||||
|
// v5.11.9 or later, color correction is applied to the color filter and gradation colors.
|
||||||
|
if (UIEffectProjectSettings.enableColorCorrection)
|
||||||
{
|
{
|
||||||
return QualitySettings.activeColorSpace == ColorSpace.Linear ? color : color.gamma;
|
return QualitySettings.activeColorSpace == ColorSpace.Linear ? color : color.gamma;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return QualitySettings.activeColorSpace == ColorSpace.Linear ? color.linear : color;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,6 +21,12 @@ namespace Coffee.UIEffects
|
|||||||
[SerializeField]
|
[SerializeField]
|
||||||
internal List<UIEffectPreset> m_RuntimePresetsV2 = new List<UIEffectPreset>();
|
internal List<UIEffectPreset> m_RuntimePresetsV2 = new List<UIEffectPreset>();
|
||||||
|
|
||||||
|
[Header("Settings")]
|
||||||
|
[Tooltip("Whether to enable the color correction feature added in v5.11.9.\n" +
|
||||||
|
"If disabled, the color picker will not display the correct colors, but compatibility with previous versions can be maintained.")]
|
||||||
|
[HideInInspector]
|
||||||
|
[SerializeField] private bool m_EnableColorCorrection = true;
|
||||||
|
|
||||||
[Header("Editor")]
|
[Header("Editor")]
|
||||||
[Tooltip("Use HDR color pickers on color fields.")]
|
[Tooltip("Use HDR color pickers on color fields.")]
|
||||||
[HideInInspector]
|
[HideInInspector]
|
||||||
@@ -38,6 +44,16 @@ namespace Coffee.UIEffects
|
|||||||
|
|
||||||
public static ShaderVariantCollection shaderVariantCollection => shaderRegistry.shaderVariantCollection;
|
public static ShaderVariantCollection shaderVariantCollection => shaderRegistry.shaderVariantCollection;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Whether to enable the color correction feature added in v5.11.9.
|
||||||
|
/// If disabled, the color picker will not display the correct colors, but compatibility with previous
|
||||||
|
/// versions can be maintained.
|
||||||
|
/// </summary>
|
||||||
|
public static bool enableColorCorrection => instance.m_EnableColorCorrection;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Whether to use HDR color pickers on color fields.
|
||||||
|
/// </summary>
|
||||||
public static bool useHdrColorPicker
|
public static bool useHdrColorPicker
|
||||||
{
|
{
|
||||||
get => instance.m_UseHDRColorPicker;
|
get => instance.m_UseHDRColorPicker;
|
||||||
|
|||||||
@@ -0,0 +1,24 @@
|
|||||||
|
{
|
||||||
|
"name": "com.coffee.ui-effect.shadergraph-builtin",
|
||||||
|
"displayName": "UI Effect - ShaderGraph Support (Unity 6 BuiltIn)",
|
||||||
|
"description": "An extension for UI Effect that adds ShaderGraph support (Unity 6 BuiltIn).",
|
||||||
|
"version": "5.12.1",
|
||||||
|
"unity": "2020.3",
|
||||||
|
"license": "MIT",
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "git+https://github.com/mob-sakai/UIEffect.git"
|
||||||
|
},
|
||||||
|
"author": {
|
||||||
|
"name": "mob-sakai",
|
||||||
|
"email": "sakai861104@gmail.com",
|
||||||
|
"url": "https://github.com/mob-sakai"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"com.coffee.ui-effect": "5.12.1"
|
||||||
|
},
|
||||||
|
"keywords": [
|
||||||
|
"ui",
|
||||||
|
"effect"
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 2243ea0ee3ea34ea096e46b623d926bd
|
||||||
|
TextScriptImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
{
|
||||||
|
"name": "com.coffee.ui-effect.shadergraph-urp",
|
||||||
|
"displayName": "UI Effect - ShaderGraph Support (Unity 6 URP)",
|
||||||
|
"description": "An extension for UI Effect that adds ShaderGraph support (Unity 6 URP).",
|
||||||
|
"version": "5.12.1",
|
||||||
|
"unity": "2020.3",
|
||||||
|
"license": "MIT",
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "git+https://github.com/mob-sakai/UIEffect.git"
|
||||||
|
},
|
||||||
|
"author": {
|
||||||
|
"name": "mob-sakai",
|
||||||
|
"email": "sakai861104@gmail.com",
|
||||||
|
"url": "https://github.com/mob-sakai"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"com.coffee.ui-effect": "5.12.1",
|
||||||
|
"com.coffee.ui-effect-shadergraph-builtin": "5.12.1"
|
||||||
|
},
|
||||||
|
"keywords": [
|
||||||
|
"ui",
|
||||||
|
"effect"
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: c3e0358c9a5534ade85d2ae0f2847c55
|
||||||
|
TextScriptImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
{
|
||||||
|
"name": "com.coffee.ui-effect.textmeshpro-legacy",
|
||||||
|
"displayName": "UI Effect - TextMeshPro Support",
|
||||||
|
"description": "An extension for UI Effect that adds TextMeshPro support.",
|
||||||
|
"version": "5.12.1",
|
||||||
|
"unity": "2020.3",
|
||||||
|
"license": "MIT",
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "git+https://github.com/mob-sakai/UIEffect.git"
|
||||||
|
},
|
||||||
|
"author": {
|
||||||
|
"name": "mob-sakai",
|
||||||
|
"email": "sakai861104@gmail.com",
|
||||||
|
"url": "https://github.com/mob-sakai"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"com.coffee.ui-effect": "5.12.1"
|
||||||
|
},
|
||||||
|
"keywords": [
|
||||||
|
"ui",
|
||||||
|
"effect"
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 469383fe0c8fd46bda3985c672997f1c
|
||||||
|
TextScriptImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
{
|
||||||
|
"name": "com.coffee.ui-effect.textmeshpro",
|
||||||
|
"displayName": "UI Effect - TextMeshPro Support (Unity 6)",
|
||||||
|
"description": "An extension for UI Effect that adds TextMeshPro support (Unity 6).",
|
||||||
|
"version": "5.12.1",
|
||||||
|
"unity": "2020.3",
|
||||||
|
"license": "MIT",
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "git+https://github.com/mob-sakai/UIEffect.git"
|
||||||
|
},
|
||||||
|
"author": {
|
||||||
|
"name": "mob-sakai",
|
||||||
|
"email": "sakai861104@gmail.com",
|
||||||
|
"url": "https://github.com/mob-sakai"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"com.coffee.ui-effect": "5.12.1"
|
||||||
|
},
|
||||||
|
"keywords": [
|
||||||
|
"ui",
|
||||||
|
"effect"
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 7a74c4045f8ba4e64bd8696c864268bb
|
||||||
|
TextScriptImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
{
|
||||||
|
"name": "com.coffee.ui-effect.v4-compatible-components",
|
||||||
|
"displayName": "UI Effect - v4 Compatible Components",
|
||||||
|
"description": "An extension for UI Effect that adds v4 compatible components.",
|
||||||
|
"version": "5.12.1",
|
||||||
|
"unity": "2020.3",
|
||||||
|
"license": "MIT",
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "git+https://github.com/mob-sakai/UIEffect.git"
|
||||||
|
},
|
||||||
|
"author": {
|
||||||
|
"name": "mob-sakai",
|
||||||
|
"email": "sakai861104@gmail.com",
|
||||||
|
"url": "https://github.com/mob-sakai"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"com.coffee.ui-effect": "5.12.1",
|
||||||
|
"com.unity.modules.animation": "1.0.0"
|
||||||
|
},
|
||||||
|
"keywords": [
|
||||||
|
"ui",
|
||||||
|
"effect"
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: ba5e37d9f990b4856ad9e2d940318ec9
|
||||||
|
TextScriptImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,38 @@
|
|||||||
|
const fs = require("node:fs");
|
||||||
|
const path = require("node:path");
|
||||||
|
const version = process.argv[2];
|
||||||
|
|
||||||
|
if (!version) {
|
||||||
|
throw new Error("Release version must be specified.");
|
||||||
|
}
|
||||||
|
|
||||||
|
// Find package.json files in each sample directory.
|
||||||
|
const packageFiles = fs
|
||||||
|
.readdirSync("Samples~", { withFileTypes: true })
|
||||||
|
.filter((entry) => entry.isDirectory())
|
||||||
|
.map((entry) => path.join("Samples~", entry.name, "package.json"))
|
||||||
|
.filter((filePath) => fs.existsSync(filePath));
|
||||||
|
|
||||||
|
// Update each sample package version and internal package dependencies to the release version.
|
||||||
|
for (const filePath of packageFiles) {
|
||||||
|
const packageJson = JSON.parse(fs.readFileSync(filePath, "utf8"));
|
||||||
|
|
||||||
|
// Update the package version to the release version.
|
||||||
|
let changed = packageJson.version !== version;
|
||||||
|
packageJson.version = version;
|
||||||
|
|
||||||
|
// Update internal package dependencies to the same release version.
|
||||||
|
if (packageJson.dependencies !== undefined) {
|
||||||
|
for (const dependencyName of Object.keys(packageJson.dependencies)) {
|
||||||
|
if (dependencyName.startsWith("com.coffee.ui-effect") && packageJson.dependencies[dependencyName] !== version) {
|
||||||
|
packageJson.dependencies[dependencyName] = version;
|
||||||
|
changed = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Write only when the package version or an internal dependency changed.
|
||||||
|
if (changed) {
|
||||||
|
fs.writeFileSync(filePath, `${JSON.stringify(packageJson, null, 2)}\n`);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
"name": "com.coffee.ui-effect",
|
"name": "com.coffee.ui-effect",
|
||||||
"displayName": "UI Effect",
|
"displayName": "UI Effect",
|
||||||
"description": "UIEffect is an open-source package that allows you to intuitively apply rich UI effects directly from the Inspector or via code.\nCombine various filters, such as grayscale, blur, and dissolve, to decorate your UI with a unique visual style!",
|
"description": "UIEffect is an open-source package that allows you to intuitively apply rich UI effects directly from the Inspector or via code.\nCombine various filters, such as grayscale, blur, and dissolve, to decorate your UI with a unique visual style!",
|
||||||
"version": "5.11.9",
|
"version": "5.12.1",
|
||||||
"unity": "2020.3",
|
"unity": "2020.3",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"repository": {
|
"repository": {
|
||||||
|
|||||||
Reference in New Issue
Block a user