| | 1 | | // Copyright (c) 2020-2022 dotBunny Inc. |
| | 2 | | // dotBunny licenses this file to you under the BSL-1.0 license. |
| | 3 | | // See the LICENSE file in the project root for more information. |
| | 4 | |
|
| | 5 | | namespace GDX.Developer.ConsoleCommands |
| | 6 | | { |
| | 7 | | #if UNITY_2022_2_OR_NEWER |
| | 8 | | public class SceneWaitConsoleCommand : ConsoleCommandBase |
| | 9 | | { |
| | 10 | | /// <inheritdoc /> |
| | 11 | | public override bool Evaluate(float deltaTime) |
| 0 | 12 | | { |
| 0 | 13 | | return !SceneExtensions.IsSceneManagerBusy(); |
| 0 | 14 | | } |
| | 15 | |
|
| | 16 | | /// <inheritdoc /> |
| | 17 | | public override string GetKeyword() |
| 7 | 18 | | { |
| 7 | 19 | | return "scene.wait"; |
| 7 | 20 | | } |
| | 21 | |
|
| | 22 | | /// <inheritdoc /> |
| | 23 | | public override string GetHelpMessage() |
| 0 | 24 | | { |
| 0 | 25 | | return "Waits for all scene actions to stabilize (loading/unloading), and all enabled."; |
| 0 | 26 | | } |
| | 27 | | } |
| | 28 | | #endif // UNITY_2022_2_OR_NEWER |
| | 29 | | } |