private async void RebuildLayout() { LayoutStaticizer.Activate(transform); LayoutFixer.Fix(transform); await UniTask.DelayFrame(5); if (this == null || transform == null) { return; } LayoutStaticizer.Staticize(transform); }
private void InstantiateSettings() { SettingsFactory.InstantiateGeneralSettings(generalTab, true); SettingsFactory.InstantiateGameplaySettings(gameplayTab); SettingsFactory.InstantiateVisualSettings(visualTab); SettingsFactory.InstantiateAdvancedSettings(advancedTab, true); async void Fix(Transform transform) { LayoutStaticizer.Activate(transform); LayoutFixer.Fix(transform); await UniTask.DelayFrame(5); LayoutStaticizer.Staticize(transform); } Fix(generalTab.parent); Fix(gameplayTab.parent); Fix(visualTab.parent); Fix(advancedTab.parent); }