Class SceneBackdrop
The terrain around a generated scene, out to the horizon: drawn, never walked on.
public class SceneBackdrop : ClientOnlyObject
- Inheritance
-
ObjectComponentBehaviourMonoBehaviourSceneBackdrop
- 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
The scene generator builds it from the same planet the scene was cut from, at the same radius and vertical scale, so the ground carries on past the scene's edge exactly as the globe says it does. It has no colliders and no gameplay; the scene's boundary still decides where anybody can go. Client-only (see ClientOnlyObject).
It also owns how far the camera sees. The client's camera draws to a fixed distance (1000 m in ClientPreboot), which hides a backdrop reaching ten kilometres, and hides most of a six-kilometre scene too. While a backdrop is loaded the main camera's far plane is raised to reach its far edge from anywhere in the scene, and put back when the last one unloads.
Fields
ControlLayers
[Tooltip("The scene layer each channel of the backdrop's control maps holds (channel c of map k is entry 4k + c), for a scene of more than 32 layers: the 32 that carry the most weight past its edge. Empty: channel c is layer c. Written by the backdrop's bake.")]
public int[] ControlLayers
Field Value
- int[]
FarPlaneMetres
[Tooltip("How far the camera must see to reach this backdrop's far edge from anywhere in the scene, in metres.")]
public float FarPlaneMetres
Field Value
ReachMetres
[Tooltip("How far the backdrop reaches past the scene's edge, in metres.")]
public float ReachMetres
Field Value
SceneSizeMetres
[Tooltip("The scene's own size in metres (X, Z), which the backdrop surrounds.")]
public Vector2 SceneSizeMetres
Field Value
- Vector2
Properties
Active
The backdrops loaded now: the ground beyond the scenes' terrain, which the sky reads as ground too (TerrainSet).
public static IReadOnlyList<SceneBackdrop> Active { get; }