-
Notifications
You must be signed in to change notification settings - Fork 0
Prefab Utilities
Indigocoder1 edited this page Oct 24, 2024
·
3 revisions
There are a few prefab utilities Sub Library provides to make setting up your prefabs easier.
-
AddSubScripts
- This component, once added to your prefab root, will add all the components necessary for a basic submarine. It will link component when possible, but some will need to be added by the modder later on. It will delete itself once the scripts are added. -
ApplySNFont
- This applied the Subnautica font to TextMeshPro components using a variety of application options -
ApplySNLayer
- This applies a Layer from Subnautica to the GameObject it is attached to -
GenerateDistanceField
- This is a script which should only be used in the Unity Editor. It generates a 3d texture of the Sub assuming you already have colliders on it. This can be used for things such as theWaterClipProxy
, orSDFCutout
components. These are in charge of making sure the surface of the water doesn't clip through the sub, and that things like kelp don't clip through the sub respectively -
DistanceFieldAssigner
- This is used in tandem with theGenerateDistanceField
's 3d texture to apply it to anSDFCutout
andWaterClipProxy
at runtime