Updated all components using "LayoutGroup" to override their OnDisable feature to incorporate this fix:
https://gist.github.com/randomize/73ca6d3b6aa7210073692eb5cabd537e Resolves: https://github.com/Unity-UI-Extensions/com.unity.uiextensions/issues/178pull/413/head
parent
e78a2806ed
commit
3ed20ecaed
|
@ -29,6 +29,13 @@ namespace UnityEngine.UI.Extensions
|
|||
public float centerpoint = 0.5f;
|
||||
|
||||
protected override void OnEnable() { base.OnEnable(); CalculateRadial(); }
|
||||
|
||||
protected override void OnDisable()
|
||||
{
|
||||
m_Tracker.Clear();
|
||||
LayoutRebuilder.MarkLayoutForRebuild(rectTransform);
|
||||
}
|
||||
|
||||
public override void SetLayoutHorizontal() {
|
||||
}
|
||||
public override void SetLayoutVertical() {
|
||||
|
|
|
@ -422,5 +422,13 @@ namespace UnityEngine.UI.Extensions
|
|||
}
|
||||
return max;
|
||||
}
|
||||
}
|
||||
|
||||
protected override void OnDisable()
|
||||
{
|
||||
m_Tracker.Clear();
|
||||
LayoutRebuilder.MarkLayoutForRebuild(rectTransform);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
|
@ -55,6 +55,13 @@ namespace UnityEngine.UI.Extensions
|
|||
CalculateRadial();
|
||||
}
|
||||
#endif
|
||||
|
||||
protected override void OnDisable()
|
||||
{
|
||||
m_Tracker.Clear(); // key change - do not restore - false
|
||||
LayoutRebuilder.MarkLayoutForRebuild(rectTransform);
|
||||
}
|
||||
|
||||
void CalculateRadial()
|
||||
{
|
||||
m_Tracker.Clear();
|
||||
|
|
|
@ -284,5 +284,11 @@ namespace UnityEngine.UI.Extensions
|
|||
// Set preferredRowHeights to null to free memory
|
||||
preferredRowHeights = null;
|
||||
}
|
||||
|
||||
protected override void OnDisable()
|
||||
{
|
||||
m_Tracker.Clear(); // key change - do not restore - false
|
||||
LayoutRebuilder.MarkLayoutForRebuild(rectTransform);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue