namespace FishNet.Managing.Scened { /// /// Settings to apply when loading a scene. /// public class UnloadOptions { /// /// Conditions to unloading a scene on the server. /// public enum ServerUnloadMode { /// /// Unloads the scene if no more connections are within it. /// UnloadUnused = 0, /// /// Unloads scenes for connections but keeps scene loaded on server even if no connections are within it. /// KeepUnused = 1, } /// /// How to unload scenes on the server. UnloadUnused will unload scenes which have no more clients in them. KeepUnused will not unload a scene even when empty. ForceUnload will unload a scene regardless of if clients are still connected to it. /// [System.NonSerialized] public ServerUnloadMode Mode = ServerUnloadMode.UnloadUnused; /// /// True if scenes should be loaded using addressables. This field only exists for optional use so the user may know if their queue data is using addressables. /// public bool Addressables; } }