mirror of
https://github.com/mob-sakai/UIEffect.git
synced 2026-11-20 09:52:38 +08:00
Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 674c1e858b | |||
| 67c35affec | |||
| 7fe0b44e56 | |||
| 0c2a515abc | |||
| 2c7df2a749 |
@@ -98,6 +98,14 @@ Please enable `TexCoord1` to use UIEffect.
|
||||
|
||||
## Release Notes
|
||||
|
||||
### ver.1.4.3
|
||||
|
||||
* Fixed: Color effect is incorrect. [#19](https://github.com/mob-sakai/UIEffect/issues/19)
|
||||
|
||||
### ver.1.4.2
|
||||
|
||||
* Fixed: Error has occur on after deserialize. [#16](https://github.com/mob-sakai/UIEffect/issues/16)
|
||||
|
||||
### ver.1.4.1
|
||||
|
||||
* Fixed: Demo link in `readme.md` is broken.
|
||||
|
||||
@@ -171,7 +171,7 @@ Shader "UI/Hidden/UI-Effect"
|
||||
#endif
|
||||
|
||||
#if defined (UI_COLOR)
|
||||
color = ApplyColorEffect(color, IN.colorFactor); // Color effect.
|
||||
color = ApplyColorEffect(color, IN.colorFactor) * IN.color; // Color effect.
|
||||
#endif
|
||||
|
||||
return color;
|
||||
|
||||
@@ -329,8 +329,12 @@ namespace UnityEngine.UI
|
||||
|
||||
public void OnAfterDeserialize()
|
||||
{
|
||||
var obj = this;
|
||||
EditorApplication.delayCall += () =>
|
||||
{
|
||||
if (!obj)
|
||||
return;
|
||||
|
||||
var old = m_EffectMaterial;
|
||||
m_EffectMaterial = GetMaterial(Shader.Find(shaderName), toneMode, colorMode, blurMode);
|
||||
if (old != m_EffectMaterial)
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user