Skip to content

BaseBoltSettings

Tommo J. Phillips edited this page Oct 22, 2023 · 2 revisions

BaseBoltSettings

Namespace: TommoJProductions.ModApi.Attachable

Represents base bolt settings eg => the size of the bolt.

public class BaseBoltSettings

Inheritance ObjectBaseBoltSettings

Fields

size

Represents the tool size required to un/tighten this fastener.

public BoltSize size;

customPrefab

Represents the custom prefab to use. set this to the prefab you want the fastener to be. leave null if you want modapi to handle model creation.

public GameObject customPrefab;

Constructors

BaseBoltSettings()

default values

public BaseBoltSettings()

BaseBoltSettings(BaseBoltSettings)

inits new instance of bolt settings and copies instance values.

public BaseBoltSettings(BaseBoltSettings s)

Parameters

s BaseBoltSettings
the instance of bolt settings to copy.

Methods

copy()

Copies field values to a new instance and returns.

public BaseBoltSettings copy()

Returns

BaseBoltSettings
A new instance with the same values

Clone this wiki locally