Table of Contents

Class CaveCoverBake

Namespace
FishMMO.Shared
Assembly
FishMMO.Shared.dll

What the run-time cave cover reads of a cave's rock (2026-11-03), baked at the cut beside its pieces in the scene's caves asset and named on its CaveCoverSite: per piece, its vertices cut down to the four attributes FishCaveCover.compute reads (position, normal, colour, TEXCOORD3, each in the piece's own format, so the cover lands bit for bit where the mesh would put it) and its first submesh's indices.

public sealed class CaveCoverBake : ScriptableObject
Inheritance
Object
ScriptableObject
CaveCoverBake
Inherited Members
ScriptableObject.SetDirty()
ScriptableObject.CreateInstance<T>()
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

The stored pieces are unreadable (CaveShaper): a player uploads them straight to the GPU with no CPU copy, and there re-targeting a piece's index buffer raw for the compute fails ("index buffer is null"), so no cover ever grew in a player. The cover reads this instead, in buffers of its own. About half the render vertex (36 of 68 bytes); the pieces stay unreadable, and a server never loads it (the Visual is client-only).

Fields

Pieces

public List<CaveCoverBake.Piece> Pieces

Field Value

List<CaveCoverBake.Piece>

Methods

For(Mesh)

The baked piece of a mesh, or null when it has none or no longer matches it.

public CaveCoverBake.Piece For(Mesh mesh)

Parameters

mesh Mesh

Returns

CaveCoverBake.Piece

Refreshed()

Forgets the lookup (the cut refilled Pieces).

public void Refreshed()