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