UI调整
This commit is contained in:
@@ -169,7 +169,7 @@ public class UIBlurCommon
|
||||
{
|
||||
hasCachedBlur = false;
|
||||
|
||||
if (!PresentInBlurList || prevKey.prevCamera == null || !blurDict.TryGetValue(prevKey, out var blurList))
|
||||
if (!PresentInBlurList || !blurDict.TryGetValue(prevKey, out var blurList))
|
||||
{
|
||||
prevKey = (null, 0);
|
||||
PresentInBlurList = false;
|
||||
@@ -297,7 +297,7 @@ public class UIBlurCommon
|
||||
var key = GetCameraFeatureKey(canvas);
|
||||
var camera = key.camera;
|
||||
|
||||
if (!camera)
|
||||
if (!camera || !canvas || !canvas.isActiveAndEnabled || !rectTransform.gameObject.activeInHierarchy)
|
||||
{
|
||||
RemoveFromBlurList();
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user