Compare commits

...

4 Commits

Author SHA1 Message Date
mob-sakai 346b1c8ec6 release 2018-06-14 18:15:29 +09:00
mob-sakai be86d169bf update change log 2018-06-14 18:15:28 +09:00
mob-sakai ee452d6794 fix #90; Errors occurred on build (v2.6.0) 2018-06-14 18:10:57 +09:00
Takashi Sakai e0c660773f Update CHANGELOG.md 2018-06-14 17:58:20 +09:00
4 changed files with 18 additions and 12 deletions
@@ -11,11 +11,13 @@ namespace Coffee.UIExtensions
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>();
@@ -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 };
@@ -28,15 +31,14 @@ namespace Coffee.UIExtensions
/// </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>
@@ -51,12 +53,9 @@ namespace Coffee.UIExtensions
/// </summary>
public virtual void OnAfterDeserialize()
{
#if UNITY_EDITOR
UnityEditor.EditorApplication.delayCall += () => UpdateMaterial(true);
#endif
}
#if UNITY_EDITOR
/// <summary>
/// Updates the material.
/// </summary>
+10 -5
View File
@@ -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!
@@ -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)
@@ -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)
+1 -1
View File
@@ -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"