Protecting Remove too
parent
a317663268
commit
35c778f5f7
|
@ -157,7 +157,12 @@ namespace UnityEngine.UI.Extensions
|
|||
{
|
||||
return;
|
||||
}
|
||||
_scroll_rect.horizontalNormalizedPosition = 0;
|
||||
try
|
||||
{
|
||||
// Rare instances of Unity bug cause error, adding try to manage it.
|
||||
_scroll_rect.horizontalNormalizedPosition = 0;
|
||||
}
|
||||
catch { }
|
||||
|
||||
Transform child = _screensContainer.transform.GetChild(index);
|
||||
child.SetParent(null, WorldPositionStays);
|
||||
|
|
|
@ -154,7 +154,12 @@ namespace UnityEngine.UI.Extensions
|
|||
{
|
||||
return;
|
||||
}
|
||||
_scroll_rect.verticalNormalizedPosition = 0;
|
||||
try
|
||||
{
|
||||
// Rare instances of Unity bug cause error, adding try to manage it.
|
||||
_scroll_rect.verticalNormalizedPosition = 0;
|
||||
}
|
||||
catch { }
|
||||
|
||||
Transform child = _screensContainer.transform.GetChild(index);
|
||||
child.SetParent(null, WorldPositionStays);
|
||||
|
|
Loading…
Reference in New Issue