mirror of
https://github.com/mob-sakai/UIEffect.git
synced 2026-11-21 10:22:37 +08:00
Fixed: Error has occur on after deserialize.
This commit is contained in:
committed by
Takashi Sakai
parent
cc02d8945b
commit
2c7df2a749
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user