Optimize UI performance when destroying complex UI structures
This commit is contained in:
@@ -709,6 +709,12 @@ namespace FlaxEngine.GUI
|
||||
Focus();
|
||||
}
|
||||
|
||||
// Disable layout
|
||||
if (!_isLayoutLocked)
|
||||
{
|
||||
LockChildrenRecursive();
|
||||
}
|
||||
|
||||
base.OnDestroy();
|
||||
|
||||
// Pass event further
|
||||
|
||||
Reference in New Issue
Block a user