Compare commits

..

5 Commits

Author SHA1 Message Date
semantic-release-bot 8155f94943 chore(release): 5.5.1 [skip ci]
## [5.5.1](https://github.com/mob-sakai/UIEffect/compare/5.5.0...5.5.1) (2025-02-14)

### Bug Fixes

* fix v4 compatible components ([6f6a8c9](https://github.com/mob-sakai/UIEffect/commit/6f6a8c95f878a290b1c4238cd0519f14febc04b6))
* fully visible when the transition rate is set to 1 ([0a99bb7](https://github.com/mob-sakai/UIEffect/commit/0a99bb7765443a84070e19c9ea0096808442932e)), closes [#309](https://github.com/mob-sakai/UIEffect/issues/309)
* UIEffect with TextMeshPro appears black in the editor when saving scene ([8cbcd76](https://github.com/mob-sakai/UIEffect/commit/8cbcd765ed9e11c38e3257191c2fc7dcd2c9916e))
2025-02-14 08:01:21 +00:00
mob-sakai 0a99bb7765 fix: fully visible when the transition rate is set to 1
close #309
2025-02-14 15:56:10 +09:00
mob-sakai 6b6ff3e1d8 chore: update demo 2025-02-14 15:56:10 +09:00
mob-sakai 8cbcd765ed fix: UIEffect with TextMeshPro appears black in the editor when saving scene 2025-02-14 15:56:10 +09:00
mob-sakai 6f6a8c95f8 fix: fix v4 compatible components 2025-02-14 15:56:10 +09:00
14 changed files with 123 additions and 48 deletions
+9
View File
@@ -1,3 +1,12 @@
## [5.5.1](https://github.com/mob-sakai/UIEffect/compare/5.5.0...5.5.1) (2025-02-14)
### Bug Fixes
* fix v4 compatible components ([6f6a8c9](https://github.com/mob-sakai/UIEffect/commit/6f6a8c95f878a290b1c4238cd0519f14febc04b6))
* fully visible when the transition rate is set to 1 ([0a99bb7](https://github.com/mob-sakai/UIEffect/commit/0a99bb7765443a84070e19c9ea0096808442932e)), closes [#309](https://github.com/mob-sakai/UIEffect/issues/309)
* UIEffect with TextMeshPro appears black in the editor when saving scene ([8cbcd76](https://github.com/mob-sakai/UIEffect/commit/8cbcd765ed9e11c38e3257191c2fc7dcd2c9916e))
# [5.5.0](https://github.com/mob-sakai/UIEffect/compare/5.4.0...5.5.0) (2025-02-12)
+3 -3
View File
@@ -1060,13 +1060,13 @@ namespace Coffee.UIEffects
c.gradationRotation = m_GradationRotation;
}
public override void ApplyContextToMaterial()
public override void ApplyContextToMaterial(Material material)
{
base.ApplyContextToMaterial();
base.ApplyContextToMaterial(material);
replicas.ForEach(c =>
{
if (!c) return;
c.ApplyContextToMaterial();
c.ApplyContextToMaterial(material);
});
}
+7 -7
View File
@@ -98,7 +98,7 @@ namespace Coffee.UIEffects
Profiler.EndSample();
}
ApplyContextToMaterial();
ApplyContextToMaterial(_material);
Profiler.EndSample();
return _material;
}
@@ -107,7 +107,7 @@ namespace Coffee.UIEffects
protected override void OnValidate()
{
UpdateContext(context);
ApplyContextToMaterial();
ApplyContextToMaterial(graphic ? graphic.canvasRenderer.GetMaterial() : _material);
SetVerticesDirty();
SetMaterialDirty();
@@ -141,7 +141,7 @@ namespace Coffee.UIEffects
if (graphic)
{
graphic.SetVerticesDirty();
GraphicProxy.Find(graphic).SetVerticesDirty(graphic);
GraphicProxy.Find(graphic).SetVerticesDirty(graphic, false);
#if UNITY_EDITOR
EditorApplication.QueuePlayerLoopUpdate();
#endif
@@ -161,14 +161,14 @@ namespace Coffee.UIEffects
protected abstract void UpdateContext(UIEffectContext c);
public virtual void ApplyContextToMaterial()
public virtual void ApplyContextToMaterial(Material material)
{
if (!isActiveAndEnabled || context == null) return;
if (!isActiveAndEnabled || context == null || !material) return;
context.ApplyToMaterial(_material, actualSamplingScale);
context.ApplyToMaterial(material, actualSamplingScale);
#if UNITY_EDITOR
UIEffectProjectSettings.shaderRegistry.RegisterVariant(_material, "UI > UIEffect");
UIEffectProjectSettings.shaderRegistry.RegisterVariant(material, "UI > UIEffect");
if (!EditorApplication.isPlaying)
{
EditorApplication.QueuePlayerLoopUpdate();
+2 -2
View File
@@ -107,11 +107,11 @@ namespace Coffee.UIEffects
{
}
public override void ApplyContextToMaterial()
public override void ApplyContextToMaterial(Material material)
{
if (!isActiveAndEnabled || !target || !target.isActiveAndEnabled) return;
base.ApplyContextToMaterial();
base.ApplyContextToMaterial(material);
}
public override void SetRate(float rate, UIEffectTweener.CullingMask mask)
@@ -68,7 +68,7 @@ namespace Coffee.UIEffects
}
}
public virtual void SetVerticesDirty(Graphic graphic)
public virtual void SetVerticesDirty(Graphic graphic, bool enabled)
{
}
+24 -3
View File
@@ -53,11 +53,19 @@ namespace Coffee.UIEffects
}
}
public override void SetVerticesDirty(Graphic graphic)
public override void SetVerticesDirty(Graphic graphic, bool enabled)
{
if (graphic is TextMeshProUGUI textMeshProUGUI && textMeshProUGUI.isActiveAndEnabled)
{
OnChangeText(textMeshProUGUI);
if (enabled)
{
OnChangeText(textMeshProUGUI);
}
else if (0 < textMeshProUGUI.textInfo?.meshInfo?.Length
&& 0 < textMeshProUGUI.textInfo.meshInfo[0].vertexCount)
{
textMeshProUGUI.UpdateVertexData();
}
}
}
@@ -174,6 +182,20 @@ namespace Coffee.UIEffects
s_ChangedInstances.Clear();
};
#if UNITY_EDITOR
UnityEditor.SceneManagement.EditorSceneManager.sceneSaved += _ =>
{
foreach (var textMeshProUGUI in s_RegisteredInstances)
{
if (!textMeshProUGUI || !textMeshProUGUI.isActiveAndEnabled) continue;
if (textMeshProUGUI.TryGetComponent<UIEffect>(out var effect) && effect.isActiveAndEnabled)
{
effect.SetMaterialDirty();
}
}
};
#endif
}
private static void OnChangeText(Object obj)
@@ -236,7 +258,6 @@ namespace Coffee.UIEffects
}
s_VertexHelper.FillMesh(s_Mesh);
replica.ApplyContextToMaterial();
subMeshUI.canvasRenderer.SetMesh(s_Mesh);
}
else
@@ -261,6 +261,8 @@ MonoBehaviour:
m_GradationMode: 0
m_GradationColor1: {r: 1, g: 1, b: 1, a: 1}
m_GradationColor2: {r: 1, g: 1, b: 1, a: 1}
m_GradationColor3: {r: 1, g: 1, b: 1, a: 1}
m_GradationColor4: {r: 1, g: 1, b: 1, a: 1}
m_GradationGradient:
serializedVersion: 2
key0: {r: 1, g: 1, b: 1, a: 1}
@@ -298,6 +300,7 @@ MonoBehaviour:
m_EdgeWidth: 0.5
m_EdgeColorFilter: 4
m_EdgeColor: {r: 1, g: 1, b: 1, a: 1}
m_EdgeShinyRate: 0.5
m_EdgeShinyWidth: 0.5
m_EdgeShinyAutoPlaySpeed: 1
m_PatternArea: 1
@@ -506,6 +509,8 @@ MonoBehaviour:
m_GradationMode: 0
m_GradationColor1: {r: 1, g: 1, b: 1, a: 1}
m_GradationColor2: {r: 1, g: 1, b: 1, a: 1}
m_GradationColor3: {r: 1, g: 1, b: 1, a: 1}
m_GradationColor4: {r: 1, g: 1, b: 1, a: 1}
m_GradationGradient:
serializedVersion: 2
key0: {r: 1, g: 1, b: 1, a: 1}
@@ -543,6 +548,7 @@ MonoBehaviour:
m_EdgeWidth: 0.5
m_EdgeColorFilter: 4
m_EdgeColor: {r: 1, g: 1, b: 1, a: 1}
m_EdgeShinyRate: 0.5
m_EdgeShinyWidth: 0.5
m_EdgeShinyAutoPlaySpeed: 1
m_PatternArea: 1
@@ -746,6 +752,8 @@ MonoBehaviour:
m_GradationMode: 0
m_GradationColor1: {r: 1, g: 1, b: 1, a: 1}
m_GradationColor2: {r: 1, g: 1, b: 1, a: 1}
m_GradationColor3: {r: 1, g: 1, b: 1, a: 1}
m_GradationColor4: {r: 1, g: 1, b: 1, a: 1}
m_GradationGradient:
serializedVersion: 2
key0: {r: 1, g: 1, b: 1, a: 1}
@@ -783,6 +791,7 @@ MonoBehaviour:
m_EdgeWidth: 0.5
m_EdgeColorFilter: 4
m_EdgeColor: {r: 1, g: 1, b: 1, a: 1}
m_EdgeShinyRate: 0.5
m_EdgeShinyWidth: 0.5
m_EdgeShinyAutoPlaySpeed: 1
m_PatternArea: 1
@@ -918,7 +927,7 @@ MonoBehaviour:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 413777962}
m_Enabled: 1
m_Enabled: 0
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: bcd162ab5f95d4f82a841acc1e950418, type: 3}
m_Name:
@@ -1273,6 +1282,8 @@ MonoBehaviour:
m_GradationMode: 0
m_GradationColor1: {r: 1, g: 1, b: 1, a: 1}
m_GradationColor2: {r: 1, g: 1, b: 1, a: 1}
m_GradationColor3: {r: 1, g: 1, b: 1, a: 1}
m_GradationColor4: {r: 1, g: 1, b: 1, a: 1}
m_GradationGradient:
serializedVersion: 2
key0: {r: 1, g: 1, b: 1, a: 1}
@@ -1310,6 +1321,7 @@ MonoBehaviour:
m_EdgeWidth: 0.5
m_EdgeColorFilter: 4
m_EdgeColor: {r: 1, g: 1, b: 1, a: 1}
m_EdgeShinyRate: 0.5
m_EdgeShinyWidth: 0.5
m_EdgeShinyAutoPlaySpeed: 1
m_PatternArea: 1
@@ -1453,6 +1465,8 @@ MonoBehaviour:
m_GradationMode: 0
m_GradationColor1: {r: 1, g: 1, b: 1, a: 1}
m_GradationColor2: {r: 1, g: 1, b: 1, a: 1}
m_GradationColor3: {r: 1, g: 1, b: 1, a: 1}
m_GradationColor4: {r: 1, g: 1, b: 1, a: 1}
m_GradationGradient:
serializedVersion: 2
key0: {r: 1, g: 1, b: 1, a: 1}
@@ -1490,6 +1504,7 @@ MonoBehaviour:
m_EdgeWidth: 0.5
m_EdgeColorFilter: 4
m_EdgeColor: {r: 1, g: 1, b: 1, a: 1}
m_EdgeShinyRate: 0.5
m_EdgeShinyWidth: 0.5
m_EdgeShinyAutoPlaySpeed: 1
m_PatternArea: 1
@@ -1749,6 +1764,8 @@ MonoBehaviour:
m_GradationMode: 2
m_GradationColor1: {r: 1, g: 1, b: 1, a: 1}
m_GradationColor2: {r: 1, g: 1, b: 1, a: 1}
m_GradationColor3: {r: 1, g: 1, b: 1, a: 1}
m_GradationColor4: {r: 1, g: 1, b: 1, a: 1}
m_GradationGradient:
serializedVersion: 2
key0: {r: 1, g: 0, b: 0, a: 1}
@@ -1786,6 +1803,7 @@ MonoBehaviour:
m_EdgeWidth: 0.5
m_EdgeColorFilter: 4
m_EdgeColor: {r: 1, g: 1, b: 1, a: 1}
m_EdgeShinyRate: 0.5
m_EdgeShinyWidth: 0.5
m_EdgeShinyAutoPlaySpeed: 1
m_PatternArea: 1
@@ -1926,6 +1944,8 @@ MonoBehaviour:
m_GradationMode: 0
m_GradationColor1: {r: 1, g: 1, b: 1, a: 1}
m_GradationColor2: {r: 1, g: 1, b: 1, a: 1}
m_GradationColor3: {r: 1, g: 1, b: 1, a: 1}
m_GradationColor4: {r: 1, g: 1, b: 1, a: 1}
m_GradationGradient:
serializedVersion: 2
key0: {r: 1, g: 1, b: 1, a: 1}
@@ -1963,6 +1983,7 @@ MonoBehaviour:
m_EdgeWidth: 0.5
m_EdgeColorFilter: 4
m_EdgeColor: {r: 1, g: 1, b: 1, a: 1}
m_EdgeShinyRate: 0.5
m_EdgeShinyWidth: 0.5
m_EdgeShinyAutoPlaySpeed: 1
m_PatternArea: 1
@@ -2623,6 +2644,8 @@ MonoBehaviour:
m_GradationMode: 0
m_GradationColor1: {r: 1, g: 1, b: 1, a: 1}
m_GradationColor2: {r: 1, g: 1, b: 1, a: 1}
m_GradationColor3: {r: 1, g: 1, b: 1, a: 1}
m_GradationColor4: {r: 1, g: 1, b: 1, a: 1}
m_GradationGradient:
serializedVersion: 2
key0: {r: 1, g: 1, b: 1, a: 1}
@@ -2660,6 +2683,7 @@ MonoBehaviour:
m_EdgeWidth: 0.5
m_EdgeColorFilter: 4
m_EdgeColor: {r: 1, g: 1, b: 1, a: 1}
m_EdgeShinyRate: 0.5
m_EdgeShinyWidth: 0.5
m_EdgeShinyAutoPlaySpeed: 1
m_PatternArea: 1
@@ -2897,6 +2921,8 @@ MonoBehaviour:
m_GradationMode: 2
m_GradationColor1: {r: 1, g: 1, b: 1, a: 1}
m_GradationColor2: {r: 1, g: 1, b: 1, a: 1}
m_GradationColor3: {r: 1, g: 1, b: 1, a: 1}
m_GradationColor4: {r: 1, g: 1, b: 1, a: 1}
m_GradationGradient:
serializedVersion: 2
key0: {r: 1, g: 0, b: 0, a: 1}
@@ -2934,6 +2960,7 @@ MonoBehaviour:
m_EdgeWidth: 0.5
m_EdgeColorFilter: 4
m_EdgeColor: {r: 1, g: 1, b: 1, a: 1}
m_EdgeShinyRate: 0.5
m_EdgeShinyWidth: 0.5
m_EdgeShinyAutoPlaySpeed: 1
m_PatternArea: 1
@@ -3507,6 +3534,8 @@ MonoBehaviour:
m_GradationMode: 0
m_GradationColor1: {r: 1, g: 1, b: 1, a: 1}
m_GradationColor2: {r: 1, g: 1, b: 1, a: 1}
m_GradationColor3: {r: 1, g: 1, b: 1, a: 1}
m_GradationColor4: {r: 1, g: 1, b: 1, a: 1}
m_GradationGradient:
serializedVersion: 2
key0: {r: 1, g: 1, b: 1, a: 1}
@@ -3544,6 +3573,7 @@ MonoBehaviour:
m_EdgeWidth: 0.5
m_EdgeColorFilter: 4
m_EdgeColor: {r: 1, g: 1, b: 1, a: 1}
m_EdgeShinyRate: 0.5
m_EdgeShinyWidth: 0.5
m_EdgeShinyAutoPlaySpeed: 1
m_PatternArea: 1
@@ -3912,6 +3942,8 @@ MonoBehaviour:
m_GradationMode: 0
m_GradationColor1: {r: 1, g: 1, b: 1, a: 1}
m_GradationColor2: {r: 1, g: 1, b: 1, a: 1}
m_GradationColor3: {r: 1, g: 1, b: 1, a: 1}
m_GradationColor4: {r: 1, g: 1, b: 1, a: 1}
m_GradationGradient:
serializedVersion: 2
key0: {r: 1, g: 1, b: 1, a: 1}
@@ -3949,6 +3981,7 @@ MonoBehaviour:
m_EdgeWidth: 0.5
m_EdgeColorFilter: 4
m_EdgeColor: {r: 1, g: 1, b: 1, a: 1}
m_EdgeShinyRate: 0.5
m_EdgeShinyWidth: 0.5
m_EdgeShinyAutoPlaySpeed: 1
m_PatternArea: 1
@@ -4229,6 +4262,8 @@ MonoBehaviour:
m_GradationMode: 0
m_GradationColor1: {r: 1, g: 1, b: 1, a: 1}
m_GradationColor2: {r: 1, g: 1, b: 1, a: 1}
m_GradationColor3: {r: 1, g: 1, b: 1, a: 1}
m_GradationColor4: {r: 1, g: 1, b: 1, a: 1}
m_GradationGradient:
serializedVersion: 2
key0: {r: 1, g: 1, b: 1, a: 1}
@@ -4266,6 +4301,7 @@ MonoBehaviour:
m_EdgeWidth: 0.5
m_EdgeColorFilter: 4
m_EdgeColor: {r: 1, g: 1, b: 1, a: 1}
m_EdgeShinyRate: 0.5
m_EdgeShinyWidth: 0.5
m_EdgeShinyAutoPlaySpeed: 1
m_PatternArea: 1
@@ -4540,6 +4576,8 @@ MonoBehaviour:
m_GradationMode: 0
m_GradationColor1: {r: 1, g: 1, b: 1, a: 1}
m_GradationColor2: {r: 1, g: 1, b: 1, a: 1}
m_GradationColor3: {r: 1, g: 1, b: 1, a: 1}
m_GradationColor4: {r: 1, g: 1, b: 1, a: 1}
m_GradationGradient:
serializedVersion: 2
key0: {r: 1, g: 1, b: 1, a: 1}
@@ -4577,6 +4615,7 @@ MonoBehaviour:
m_EdgeWidth: 0.5
m_EdgeColorFilter: 4
m_EdgeColor: {r: 1, g: 1, b: 1, a: 1}
m_EdgeShinyRate: 0.5
m_EdgeShinyWidth: 0.5
m_EdgeShinyAutoPlaySpeed: 1
m_PatternArea: 1
@@ -4865,7 +4904,7 @@ MonoBehaviour:
m_HandleRect: {fileID: 1947276361}
m_Direction: 2
m_Value: 1
m_Size: 0.5139664
m_Size: 0.73004
m_NumberOfSteps: 0
m_OnValueChanged:
m_PersistentCalls:
@@ -5237,6 +5276,8 @@ MonoBehaviour:
m_GradationMode: 0
m_GradationColor1: {r: 1, g: 1, b: 1, a: 1}
m_GradationColor2: {r: 1, g: 1, b: 1, a: 1}
m_GradationColor3: {r: 1, g: 1, b: 1, a: 1}
m_GradationColor4: {r: 1, g: 1, b: 1, a: 1}
m_GradationGradient:
serializedVersion: 2
key0: {r: 1, g: 1, b: 1, a: 1}
@@ -5274,6 +5315,7 @@ MonoBehaviour:
m_EdgeWidth: 0.5
m_EdgeColorFilter: 4
m_EdgeColor: {r: 1, g: 1, b: 1, a: 1}
m_EdgeShinyRate: 0.5
m_EdgeShinyWidth: 0.5
m_EdgeShinyAutoPlaySpeed: 1
m_PatternArea: 1
@@ -5618,6 +5660,8 @@ MonoBehaviour:
m_GradationMode: 0
m_GradationColor1: {r: 1, g: 1, b: 1, a: 1}
m_GradationColor2: {r: 1, g: 1, b: 1, a: 1}
m_GradationColor3: {r: 1, g: 1, b: 1, a: 1}
m_GradationColor4: {r: 1, g: 1, b: 1, a: 1}
m_GradationGradient:
serializedVersion: 2
key0: {r: 1, g: 1, b: 1, a: 1}
@@ -5655,6 +5699,7 @@ MonoBehaviour:
m_EdgeWidth: 0.5
m_EdgeColorFilter: 4
m_EdgeColor: {r: 1, g: 1, b: 1, a: 1}
m_EdgeShinyRate: 0.5
m_EdgeShinyWidth: 0.5
m_EdgeShinyAutoPlaySpeed: 1
m_PatternArea: 1
@@ -66,7 +66,7 @@ namespace Coffee.UIEffects
m_EffectFactor = value;
UpdateContext(context);
ApplyContextToMaterial();
SetMaterialDirty();
}
}
@@ -83,7 +83,7 @@ namespace Coffee.UIEffects
m_Width = value;
UpdateContext(context);
ApplyContextToMaterial();
SetMaterialDirty();
}
}
@@ -100,7 +100,7 @@ namespace Coffee.UIEffects
m_Softness = value;
UpdateContext(context);
ApplyContextToMaterial();
SetMaterialDirty();
}
}
@@ -116,7 +116,7 @@ namespace Coffee.UIEffects
m_Color = value;
UpdateContext(context);
ApplyContextToMaterial();
SetMaterialDirty();
}
}
@@ -133,7 +133,7 @@ namespace Coffee.UIEffects
m_TransitionTexture = value;
UpdateContext(context);
SetVerticesDirty();
ApplyContextToMaterial();
SetMaterialDirty();
}
}
@@ -171,7 +171,7 @@ namespace Coffee.UIEffects
m_ColorMode = value;
UpdateContext(context);
ApplyContextToMaterial();
SetMaterialDirty();
}
}
@@ -61,7 +61,7 @@ namespace Coffee.UIEffects
m_EffectFactor = value;
UpdateContext(context);
ApplyContextToMaterial();
SetMaterialDirty();
}
}
@@ -78,7 +78,7 @@ namespace Coffee.UIEffects
m_ColorFactor = value;
UpdateContext(context);
ApplyContextToMaterial();
SetMaterialDirty();
}
}
@@ -95,7 +95,7 @@ namespace Coffee.UIEffects
m_BlurFactor = value;
UpdateContext(context);
ApplyContextToMaterial();
SetMaterialDirty();
}
}
@@ -112,7 +112,7 @@ namespace Coffee.UIEffects
m_EffectMode = value;
UpdateContext(context);
SetVerticesDirty();
ApplyContextToMaterial();
SetMaterialDirty();
}
}
@@ -128,7 +128,7 @@ namespace Coffee.UIEffects
m_ColorMode = value;
UpdateContext(context);
ApplyContextToMaterial();
SetMaterialDirty();
}
}
@@ -145,7 +145,7 @@ namespace Coffee.UIEffects
UpdateContext(context);
SetVerticesDirty();
ApplyContextToMaterial();
SetMaterialDirty();
}
}
@@ -48,7 +48,7 @@ namespace Coffee.UIEffects
m_TargetColor = value;
UpdateContext(context);
ApplyContextToMaterial();
SetMaterialDirty();
}
}
@@ -65,7 +65,7 @@ namespace Coffee.UIEffects
m_Range = value;
UpdateContext(context);
ApplyContextToMaterial();
SetMaterialDirty();
}
}
@@ -82,7 +82,7 @@ namespace Coffee.UIEffects
m_Saturation = value;
UpdateContext(context);
ApplyContextToMaterial();
SetMaterialDirty();
}
}
@@ -99,7 +99,7 @@ namespace Coffee.UIEffects
m_Value = value;
UpdateContext(context);
ApplyContextToMaterial();
SetMaterialDirty();
}
}
@@ -116,7 +116,7 @@ namespace Coffee.UIEffects
m_Hue = value;
UpdateContext(context);
ApplyContextToMaterial();
SetMaterialDirty();
}
}
@@ -54,7 +54,7 @@ namespace Coffee.UIEffects
m_EffectFactor = value;
UpdateContext(context);
ApplyContextToMaterial();
SetMaterialDirty();
}
}
@@ -71,7 +71,7 @@ namespace Coffee.UIEffects
m_Width = value;
UpdateContext(context);
ApplyContextToMaterial();
SetMaterialDirty();
}
}
@@ -88,7 +88,7 @@ namespace Coffee.UIEffects
m_Softness = value;
UpdateContext(context);
ApplyContextToMaterial();
SetMaterialDirty();
}
}
@@ -105,7 +105,7 @@ namespace Coffee.UIEffects
m_Brightness = value;
UpdateContext(context);
ApplyContextToMaterial();
SetMaterialDirty();
}
}
@@ -122,7 +122,7 @@ namespace Coffee.UIEffects
m_Gloss = value;
UpdateContext(context);
ApplyContextToMaterial();
SetMaterialDirty();
}
}
@@ -71,7 +71,7 @@ namespace Coffee.UIEffects
m_EffectFactor = value;
UpdateContext(context);
ApplyContextToMaterial();
SetMaterialDirty();
}
}
@@ -88,7 +88,7 @@ namespace Coffee.UIEffects
m_TransitionTexture = value;
UpdateContext(context);
SetVerticesDirty();
ApplyContextToMaterial();
SetMaterialDirty();
}
}
@@ -104,7 +104,7 @@ namespace Coffee.UIEffects
m_EffectMode = value;
UpdateContext(context);
ApplyContextToMaterial();
SetMaterialDirty();
}
}
@@ -137,7 +137,7 @@ namespace Coffee.UIEffects
m_DissolveWidth = value;
UpdateContext(context);
ApplyContextToMaterial();
SetMaterialDirty();
}
}
@@ -154,7 +154,7 @@ namespace Coffee.UIEffects
m_DissolveSoftness = value;
UpdateContext(context);
ApplyContextToMaterial();
SetMaterialDirty();
}
}
@@ -170,7 +170,7 @@ namespace Coffee.UIEffects
m_DissolveColor = value;
UpdateContext(context);
ApplyContextToMaterial();
SetMaterialDirty();
}
}
+1 -1
View File
@@ -65,7 +65,7 @@ float2 texel_size()
float transition_rate()
{
return frac(_TransitionAutoPlaySpeed * _Time.y + _TransitionRate);
return frac(_TransitionAutoPlaySpeed * _Time.y + _TransitionRate * 0.9999);
}
float3 rgb_to_hsv(float3 c)
+1 -1
View File
@@ -2,7 +2,7 @@
"name": "com.coffee.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!",
"version": "5.5.0",
"version": "5.5.1",
"unity": "2020.3",
"license": "MIT",
"repository": {