PrefabLibrary Class
Manages a collection of entity prefabs. Registered as a singleton service.
public class PrefabLibrary
Inheritance System.Object → PrefabLibrary
| Constructors | |
|---|---|
| PrefabLibrary(ILogger<PrefabLibrary>) | Manages a collection of entity prefabs. Registered as a singleton service. |
| Methods | |
|---|---|
| Clear() | Clears all prefabs. |
| Get(string) | Gets a prefab by name. |
| GetAll() | Gets all registered prefabs. |
| Has(string) | Checks if a prefab exists. |
| Register(EntityPrefab) | Registers a prefab in the library. |
| Remove(string) | Removes a prefab from the library. |