Table of Contents

Class PrefabCollectionExtensions

Namespace
Nautilus.Handlers
Assembly
Nautilus.dll
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.

TryRegisterPrefab(PrefabCollection, ICustomPrefab)

Tries to register a CustomPrefab into the game.
public static bool TryRegisterPrefab(this PrefabCollection collection, ICustomPrefab customPrefab)

Parameters

collection PrefabCollection
The collection to register to.
customPrefab ICustomPrefab
The custom prefab to register.

Returns

bool

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.