Method RegisterDungeonTheme
| Edit this page View SourceRegisterDungeonTheme(GameObject, string)
Registers a new dungeon theme, identified by a unique theme name string.
Assets can be added at any time and will be registered as soon as the vanilla loader is ready.
Assets can be added at any time and will be registered as soon as the vanilla loader is ready.
Declaration
public bool RegisterDungeonTheme(GameObject prefab, string themeName)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | prefab | The DungeonGenerator prefab. |
| string | themeName | The name of the theme to register. |
Returns
| Type | Description |
|---|---|
| bool | True if theme is successfullly registered, otherwise false. |