TestEntity
A class in Root.Township, the global namespace.
Developer test behaviour with an inspector button that spawns many copies of a prefab as children of this entity.
- Listed in Global namespace: T to X
- Inherits or implements
NetworkEntityBehaviour
Constructors
| Member | What it is |
|---|---|
TestEntity() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
3 private and internal fields
| Member | What it is |
|---|---|
private bool isSpawning | Inspector button that calls Spawn. |
private int numberToSpawn | How many copies to spawn (100 by default). |
private NetworkPrefab prefab | Prefab to spawn. |