Class PrefabCollectionExtensions
Represents extension methods for the PrefabCollection class.
public static class PrefabCollectionExtensions
- Inheritance
-
PrefabCollectionExtensions
- Inherited Members
Methods
RegisterPrefab(PrefabCollection, ICustomPrefab)
Registers a CustomPrefab into the game.
public static void RegisterPrefab(this PrefabCollection collection, ICustomPrefab customPrefab)
Parameters
collection
PrefabCollection- The collection to register to.
customPrefab
ICustomPrefab- The custom prefab to register.
UnregisterPrefab(PrefabCollection, ICustomPrefab)
Unregisters a CustomPrefab from the game.
public static void UnregisterPrefab(this PrefabCollection collection, ICustomPrefab customPrefab)
Parameters
collection
PrefabCollection- The collection to unregister from.
customPrefab
ICustomPrefab- The custom prefab to unregister.