Skip to content

Commit

Permalink
release
Browse files Browse the repository at this point in the history
  • Loading branch information
mob-sakai committed Jun 14, 2018
2 parents 0369fa1 + be86d16 commit 346b1c8
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,13 @@ public class MaterialCache
public Texture texture;
public Material material;

#if UNITY_EDITOR
[UnityEditor.InitializeOnLoadMethod]
static void ClearCache()
{
materialCache.Clear();
}
#endif

public static List<MaterialCache> materialCache = new List<MaterialCache>();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ namespace Coffee.UIExtensions
[ExecuteInEditMode]
[RequireComponent(typeof(Graphic))]
[DisallowMultipleComponent]
public abstract class UIEffectBase : BaseMeshEffect, ISerializationCallbackReceiver
public abstract class UIEffectBase : BaseMeshEffect
#if UNITY_EDITOR
, ISerializationCallbackReceiver
#endif
{
protected static readonly Rect rectForCharacter = new Rect(0, 0, 1, 1);
protected static readonly Vector2[] splitedCharacterPosition = { Vector2.up, Vector2.one, Vector2.right, Vector2.zero };
Expand All @@ -28,15 +31,14 @@ public abstract class UIEffectBase : BaseMeshEffect, ISerializationCallbackRecei
/// </summary>
public Material effectMaterial { get { return m_EffectMaterial; } }

#if UNITY_EDITOR
/// <summary>
/// Raises the validate event.
/// </summary>
protected override void OnValidate ()
{
base.OnValidate ();
#if UNITY_EDITOR
UnityEditor.EditorApplication.delayCall += () => UpdateMaterial(false);
#endif
}

/// <summary>
Expand All @@ -51,12 +53,9 @@ public virtual void OnBeforeSerialize()
/// </summary>
public virtual void OnAfterDeserialize()
{
#if UNITY_EDITOR
UnityEditor.EditorApplication.delayCall += () => UpdateMaterial(true);
#endif
}

#if UNITY_EDITOR
/// <summary>
/// Updates the material.
/// </summary>
Expand Down
15 changes: 10 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
# Changelog

## [v2.6.1](https://github.com/mob-sakai/UIEffect/tree/v2.6.1) (2018-06-14)

[Full Changelog](https://github.com/mob-sakai/UIEffect/compare/v2.6.0...v2.6.1)

**Fixed bugs:**

- Errors occurred on build \(v2.6.0\) [\#90](https://github.com/mob-sakai/UIEffect/issues/90)

## [v2.6.0](https://github.com/mob-sakai/UIEffect/tree/v2.6.0) (2018-06-14)

[Full Changelog](https://github.com/mob-sakai/UIEffect/compare/v2.5.2...v2.6.0)

Blurring effect has been improved about 6 times faster!
Blurring effect has been improved about 6 times faster!
![](https://user-images.githubusercontent.com/12690315/41393724-08420b1e-6fe2-11e8-8741-721789c2d029.png)

You can change noise texture for dissolve effect from inspector or script!
Expand All @@ -22,6 +30,7 @@ You can change noise texture for dissolve effect from inspector or script!
**Closed issues:**

- Change BlurMode correctly [\#84](https://github.com/mob-sakai/UIEffect/issues/84)
- Refactoring to prepare v3.0.0 [\#83](https://github.com/mob-sakai/UIEffect/issues/83)
- Change ColorMode correctly [\#51](https://github.com/mob-sakai/UIEffect/issues/51)

## [v2.5.2](https://github.com/mob-sakai/UIEffect/tree/v2.5.2) (2018-06-07)
Expand All @@ -32,10 +41,6 @@ You can change noise texture for dissolve effect from inspector or script!

- When `UIEFFECT\_SEPARATE` symbol is defined, UIDissolve does not work well [\#85](https://github.com/mob-sakai/UIEffect/issues/85)

**Closed issues:**

- Refactoring to prepare v3.0.0 [\#83](https://github.com/mob-sakai/UIEffect/issues/83)

## [v2.5.1](https://github.com/mob-sakai/UIEffect/tree/v2.5.1) (2018-05-31)

[Full Changelog](https://github.com/mob-sakai/UIEffect/compare/v2.5.0...v2.5.1)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "UIEffect",
"version": "2.6.0",
"version": "2.6.1",
"repository": {
"type": "git",
"url": "git+https://github.com/mob-sakai/UIEffect.git"
Expand Down

0 comments on commit 346b1c8

Please sign in to comment.