Table of Contents

Class TerrainScatterModes

Namespace
FishMMO.Shared
Assembly
FishMMO.Shared.dll

The scatter modes a terrain's prototypes carry to the client (2026-10-26, phase SCATTER-MODES, decision 34), beside the terrain (written by the scene cut's scatter, TerrainScatter, only when some rule of the scene names a mode; a scene without one has no record at all, so nothing in it changes): a detail prototype's facing, lean and power-law size for the GPU detail scatter, and a tree prototype's lean for the tree renderer (a tree instance has no tilt of its own). Each is two words (Biomes.BiomeScatterModeWord).

[DisallowMultipleComponent]
public sealed class TerrainScatterModes : MonoBehaviour
Inheritance
Object
Component
Behaviour
MonoBehaviour
TerrainScatterModes
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

Details are keyed by prefab name and noise seed, as TerrainDetailBiomes is (both survive a copy of the prototype, and the record pulls no prefab into a build); trees by prototype index (every tile of a scene carries the same tree prototypes, written with them).

Fields

Details

[Tooltip("Each detail prototype whose rule names a scatter mode: its prefab's name, noise seed and the two mode words. Written by the cut; not edited by hand.")]
public List<TerrainScatterModes.Detail> Details

Field Value

List<TerrainScatterModes.Detail>

Trees

[Tooltip("Each tree prototype whose rule leans its instances: its index and the two mode words. Written by the cut; not edited by hand.")]
public List<TerrainScatterModes.Tree> Trees

Field Value

List<TerrainScatterModes.Tree>

Methods

TreeWords(int, out uint[])

Each tree prototype's two words (index for index, zeros where none is recorded); null when the record holds no tree.

public uint[] TreeWords(int prototypes, out uint[] angles)

Parameters

prototypes int
angles uint[]

Returns

uint[]

TryDetail(string, int, out uint, out uint)

The mode words recorded for a detail prototype of this prefab and noise seed; false (and zeros) when none is.

public bool TryDetail(string prefabName, int noiseSeed, out uint word, out uint angles)

Parameters

prefabName string
noiseSeed int
word uint
angles uint

Returns

bool