Table of Contents

Class BiomeHandler.SkyReference

Namespace
Nautilus.Handlers
Assembly
Nautilus.dll
Defines a reference to a new or existing Sky prefab.
public class BiomeHandler.SkyReference
Inheritance
BiomeHandler.SkyReference
Inherited Members
Extension Methods

Constructors

SkyReference(Func<GameObject>)

Defines a reference to a Sky prefab created from a callback at runtime.
public SkyReference(Func<GameObject> prefabCallback)

Parameters

prefabCallback Func<GameObject>

SkyReference(string)

Defines a reference to a base-game Sky prefab.
public SkyReference(string existingSkyPrefabName)

Parameters

existingSkyPrefabName string

The name of the Sky prefab from the list of base-game Skies, i.e. "SkySafeShallows".

A list of valid inputs can be found on this page: https://subnauticamodding.github.io/Nautilus/tutorials/biomes.html

SkyReference(GameObject)

Defines a reference to a new or existing Sky prefab.
public SkyReference(GameObject obj)

Parameters

obj GameObject

Methods

GetSkyPrefabAtRuntime(WaterBiomeManager)

Gets the sky prefab for this BiomeHandler.SkyReference.
public virtual GameObject GetSkyPrefabAtRuntime(WaterBiomeManager waterBiomeManager)

Parameters

waterBiomeManager WaterBiomeManager
Used when the type is StringLookup.

Returns

GameObject
Returns the sky's prefab depending on the given BiomeHandler.SkyReference.Type:
  • GameObjectReference: Prefab reference is returned.
  • StringLookup: The sky's name is searched for in the given waterBiomeManager. Returns null if not found.
  • GetPrefabFromCallback: The callback is invoked and the result is returned.