Class WorldSceneSettings
MonoBehaviour holding per-scene server-facing configuration and the link to the scene's WorldMapDefinition.
public class WorldSceneSettings : MonoBehaviour
- Inheritance
-
ObjectComponentBehaviourMonoBehaviourWorldSceneSettings
- Inherited Members
-
MonoBehaviour.IsInvoking()MonoBehaviour.CancelInvoke()MonoBehaviour.StopCoroutine(Coroutine)MonoBehaviour.StopAllCoroutines()MonoBehaviour.destroyCancellationTokenMonoBehaviour.useGUILayoutMonoBehaviour.didStartMonoBehaviour.didAwakeMonoBehaviour.runInEditModeBehaviour.enabledBehaviour.isActiveAndEnabledComponent.GetComponent<T>()Component.TryGetComponent<T>(out T)Component.GetComponentInChildren<T>()Component.GetComponentsInChildren<T>()Component.GetComponentInParent<T>()Component.GetComponentsInParent<T>()Component.GetComponents<T>()Component.GetComponentIndex()Component.CompareTag(TagHandle)Component.transformComponent.transformHandleComponent.gameObjectComponent.tagObject.GetEntityId()Object.MemberwiseClone()Object.GetInstanceID()Object.GetHashCode()Object.InstantiateAsync<T>(T)Object.InstantiateAsync<T>(T, Transform)Object.InstantiateAsync<T>(T, Vector3, Quaternion)Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)Object.Instantiate(Object, Vector3, Quaternion)Object.Instantiate(Object, Vector3, Quaternion, Transform)Object.Instantiate(Object)Object.Instantiate(Object, Scene)Object.Instantiate<T>(T, InstantiateParameters)Object.Instantiate<T>(T, Vector3, Quaternion, InstantiateParameters)Object.Instantiate(Object, Transform)Object.Instantiate<T>(T)Object.Instantiate<T>(T, Vector3, Quaternion)Object.Instantiate<T>(T, Vector3, Quaternion, Transform)Object.Instantiate<T>(T, Transform)Object.Destroy(Object)Object.DestroyImmediate(Object)Object.DontDestroyOnLoad(Object)Object.DestroyObject(Object)Object.FindObjectsOfType<T>()Object.FindObjectsByType<T>(FindObjectsSortMode)Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)Object.FindObjectOfType<T>()Object.FindFirstObjectByType<T>()Object.FindAnyObjectByType<T>()Object.FindFirstObjectByType<T>(FindObjectsInactive)Object.FindAnyObjectByType<T>(FindObjectsInactive)Object.FindObjectsByType<T>()Object.FindObjectsByType<T>(FindObjectsInactive)Object.ToString()Object.nameObject.hideFlags
Remarks
Core (Phase 4 of the core and modules plan, 2026-11-17): only what the game itself needs of a scene. What the world
modules know of it — where it lies on its planet, its time of day, its climate, biomes and weather — they read through
their own extensions of this component (WorldSceneAtlas, WorldSceneClimates), from the scene's atlas
entry and, for a scene that authors its own climate, a WorldSceneClimate beside it. The day and night cycle
is its own component too.
Fields
ClientBackdrop
A world only the client draws, never a place players go (the login screen's backdrop). It is cut, baked and shipped like any world scene, so its ground, sky and weather work, but the world scene details cache leaves it out, so no server hosts it and nothing can send a character there.
[Tooltip("A client-only backdrop (the login screen's world): built like a world scene, never hosted or travelled to.")]
public bool ClientBackdrop
Field Value
MapDefinition
Optional hand-made map definition, for a set of scenes that share one map (a dungeon and its instanced twin). Normally empty: a client build bakes a definition per scene into BakedDirectory, points the world scene details cache at it, and removes it after the build. A definition assigned here is filled in by that same bake instead.
[Tooltip("Optional. Leave empty and the client build bakes this scene's map; assign one only to share a map between scenes.")]
public WorldMapDefinition MapDefinition
Field Value
MaximumClientsPerScene
The hard ceiling on clients in any one scene, anywhere in the project.
public const int MaximumClientsPerScene = 200
Field Value
Remarks
The single source of truth for the cap. The world server (routing and instance spin-up) and the scene server (channel admission) both clamp to this, so a scene authored above it is reduced rather than honoured — a designer cannot raise a scene's population past what the bandwidth and observer budgets were sized for.
200 is a deliberate ceiling, not a guess: per-client cost is bounded by the observer
visibility budget rather than by scene population, so scaling past this is done by
adding scene instances (and scene servers), never by widening one scene. See
SceneServerPlacementPolicy.
SceneTransitionImage
The scene's loading image. Authored here; the map bake copies it into the scene's definition so the client finds the whole presentation in one place.
[Tooltip("The image shown while this scene loads. Copied into the baked map definition.")]
public Sprite SceneTransitionImage
Field Value
- Sprite
Properties
AnyLoaded
Whether any loaded scene is a world scene (has its settings component).
public static bool AnyLoaded { get; }
Property Value
Entry
This scene's entry in the installed world design (the world atlas), as the core sees it, or null: no world design
installed, or the scene not in it. The world modules read their own entry (settings.AtlasEntry()).
public IWorldSceneEntry Entry { get; }
Property Value
MaxClients
The client cap: the atlas entry's, else the scene's own.
public int MaxClients { get; set; }
Property Value
OwnScene
The scene this component belongs to, resolved once rather than on every read.
public Scene OwnScene { get; }
Property Value
- Scene
Remarks
The biome sampler asked gameObject.scene for every sample, and every property
here that consults the atlas asked it for the scene's name — two engine calls and a fresh
string each time, about ten times per biome sample, and weather exposure samples every
character every second on the server and the owning client alike. The answer cannot
change at runtime: nothing moves a settings object between scenes, and it goes with its
scene when that unloads. So it is read on first use and read again whenever the
component is enabled.
Outside play mode it is read live every time, exactly as before. A designer can drag
the object into another open scene, and edit-mode tools can hold a component whose
OnEnable never ran.
SceneName
The name of OwnScene, resolved with it.
public string SceneName { get; }
Property Value
Methods
TryGetForScene(Scene, out WorldSceneSettings)
The settings component of a loaded scene, if it has one. Scenes load additively on a scene server, so this is keyed by scene.
public static bool TryGetForScene(Scene scene, out WorldSceneSettings settings)
Parameters
sceneScenesettingsWorldSceneSettings