Skip to main content

SpawnAreaBase

An abstract class in Root.Township, Alta.Populations.

Base for components that give a random spawn position, such as CircularSpawnPointGenerator.

Constructors​

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

Methods​

MemberWhat it is
abstract Vector3 GetRandomSpawnPosition()A random world position inside the area.