Method RegisterEnvironment
| Edit this page View SourceRegisterEnvironment(AssetBundle, string)
Adds a new environment prefab to be registered when ZoneSystem.SetupLocations runs.
If you intend to use a custom interior environment Location.m_interiorEnvironment, this method enables you to provide a prefab with an appropriately configured LocationList containing atleast one EnvSetup within LocationList.m_environments.
If you intend to use a custom interior environment Location.m_interiorEnvironment, this method enables you to provide a prefab with an appropriately configured LocationList containing atleast one EnvSetup within LocationList.m_environments.
Declaration
public void RegisterEnvironment(AssetBundle assetBundle, string prefabName)
Parameters
| Type | Name | Description |
|---|---|---|
| AssetBundle | assetBundle | The AssetBundle containing the prefab. |
| string | prefabName | The name of the prefab to register. |