AssistedSpawnCommandDefinition
A class in Root.Township, Alta.Menu.
Menu command asset that builds a spawn command for the local player from a chosen prefab and quantity, then routes it to the server. Created from the Township/Assisted Spawn asset menu.
- Listed in Menus, UI and platforms
- Inherits or implements
ServerCommandDefinitionBase,IHasDynamicArguments,IUsesMultipleButtons - Attributes
CreateAssetMenu
Constructors
| Member | What it is |
|---|---|
AssistedSpawnCommandDefinition() | Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets. |
Fields
| Member | What it is |
|---|---|
const string Prefab | Argument name for the prefab (prefab). |
const string Quantity | Argument name for the quantity (quantity). |
4 private and internal fields
Properties
1 private and internal property
| Member | What it is |
|---|---|
private IAutoCompletionSource AutoCompletionSource { get; } | The completion source that lists valid prefab names. |
Methods
1 private and internal method
Used in
Members of other types that take, return or hold a AssistedSpawnCommandDefinition: