Table of Contents

Class TerrainArrayProvenance

Namespace
FishMMO.Shared
Assembly
FishMMO.Shared.dll

Where each of a scene's terrain layers came from, so its art can be found again — LOCAL overrides included — every time the arrays are baked.

[DisallowMultipleComponent]
public sealed class TerrainArrayProvenance : MonoBehaviour
Inheritance
Object
Component
Behaviour
MonoBehaviour
TerrainArrayProvenance
Inherited Members
MonoBehaviour.IsInvoking()
MonoBehaviour.CancelInvoke()
MonoBehaviour.StopCoroutine(Coroutine)
MonoBehaviour.StopAllCoroutines()
MonoBehaviour.destroyCancellationToken
MonoBehaviour.useGUILayout
MonoBehaviour.didStart
MonoBehaviour.didAwake
MonoBehaviour.runInEditMode
Behaviour.enabled
Behaviour.isActiveAndEnabled
Component.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.transform
Component.transformHandle
Component.gameObject
Component.tag
Object.GetEntityId()
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.name
Object.hideFlags

Remarks

Committed, and references only committed assets: a biome and its slot key, and the committed UnityEngine.TerrainLayer. A LOCAL override is looked up from these at bake time, never stored, so a clone without the LOCAL folder bakes the committed art and one with it bakes the licensed art, from the same scene.

On its own EditorOnly object, a child of the binder's. Only the baker reads it, and a scene reference to a BiomeTemplate would otherwise pull every biome's textures and spawn prefabs into the scene bundle — art the arrays replace, shipped twice. EditorOnly objects never reach a build, so neither do the references.

Fields

EditorOnlyTag

public const string EditorOnlyTag = "EditorOnly"

Field Value

string

Layers

[Tooltip("The scene's terrain layers in channel order.")]
public List<TerrainArrayLayerSource> Layers

Field Value

List<TerrainArrayLayerSource>

ObjectName

The child object's name and tag.

public const string ObjectName = "Terrain Array Provenance"

Field Value

string