mirror of
https://github.com/mob-sakai/UIEffect.git
synced 2026-11-19 17:22:37 +08:00
fix: UIEffect with TextMeshPro SubMeshUI appears black in the editor when saving assets
This commit is contained in:
@@ -226,9 +226,19 @@ namespace Coffee.UIEffects
|
||||
.Concat(Misc.GetAllComponentsInPrefabStage<UIEffectBase>()))
|
||||
{
|
||||
c.ReleaseMaterial();
|
||||
c.SetMaterialDirty();
|
||||
}
|
||||
}
|
||||
|
||||
// Refresh all UIEffect instances.
|
||||
EditorApplication.delayCall += () =>
|
||||
{
|
||||
foreach (var c in Misc.FindObjectsOfType<UIEffectBase>()
|
||||
.Concat(Misc.GetAllComponentsInPrefabStage<UIEffectBase>()))
|
||||
{
|
||||
c.SetMaterialDirty();
|
||||
c.SetVerticesDirty();
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user