Skip to main content

MainMenuPrefabSpawner

A class in Root.Township, the global namespace.

Spawns a network prefab unchunked as a child of this object when the scene starts. Used in the main menu.

Constructors​

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

Fields​

1 private and internal field
MemberWhat it is
private NetworkPrefab prefabThe prefab to spawn.

Methods​

1 private and internal method
MemberWhat it is
private void Start()Spawns prefab and resets its local position, rotation and scale under this object.