Skip to main content

GhostSnapSlotCollection

A class in Root.Township, the global namespace.

Synced, saved collection of GhostSnapSlot children. On server spawn it snaps child ghost snap objects into their slots.

Constructors​

MemberWhat it is
GhostSnapSlotCollection()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Properties​

MemberWhat it is
protected override bool IsUsingSyncMessage { get; }Same as the base value.

Methods​

MemberWhat it is
override void InitializeAsServer(SpawnData spawnData)Server: snaps each child GhostSnapObject into its parent slot; any that fail are detached and saved on their own.