World partition
WorldAnchor
Anchor component: keeps the cells around this transform loaded.
generated from the sources
Class in namespace
Nebula.World · Packages/com.1by3.nebula/World/WorldStreamer.cspublic sealed class WorldAnchor : MonoBehaviour, IWorldAnchorAnchor component: keeps the cells around this transform loaded. Put it on the player or the camera.
Fields
RadiusCells
public int RadiusCells = 1;Cells around this object to keep loaded (1 = the 3x3x3 block).
Primary
public bool Primary;The floating origin follows this anchor.
Methods
TryGetAnchor
public bool TryGetAnchor(out Vector3 framePosition, out int radiusCells);