public static void AddSceneUI(this UserInterfaceManager userInterfaceManager, Scene scene, Template template) { var uiDispose = userInterfaceManager.Create(template); scene.AddDisposeAction(() => uiDispose()); }