Instantiator
A class in Root.Township, the global namespace.
Spawns a local, non-networked copy of a prefab at a target transform when InstantiatePrefab is called, for example from a Unity event.
- Listed in Global namespace: I to L
- Inherits or implements
MonoBehaviour
Constructors
| Member | What it is |
|---|---|
Instantiator() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
3 private and internal fields
Methods
| Member | What it is |
|---|---|
void InstantiatePrefab() | Instantiates the prefab with the target's position, rotation and local scale, then parents it to targetParent. |