-
Notifications
You must be signed in to change notification settings - Fork 16
BoltSettings
Namespace: TommoJProductions.ModApi.Attachable
Represents bolt settings eg => the size of ther bolt.
public class BoltSettings : BaseBoltSettingsInheritance Object → BaseBoltSettings → BoltSettings
for initializing a new instance of bolt with custom name.
public string name;Represents the bolts type.
public BoltType type;If , the rachet can be used to tighten and loosen the fastener.
public bool canUseRachet;Represents the position step. (how quick the position of the bolt moves in BoltSettings.posDirection. when un/tightening)
public float posStep;Represents the rot step. (how quick the bolt rotates when un/tightening.
public float rotStep;Represents positional direction of bolt.
public Vector3 posDirection;Represents the rotational direction of bolt.
public Vector3 rotDirection;if true, highlights the bolt green when the bolt is activated.
public bool highlightWhenActive;If true, Bolt is visible and logic is active when uninstalled.
public bool activeWhenUninstalled;Represents the tool size required to un/tighten this fastener.
public BoltSize size;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;Initializes new instance of b settings with default values.
public BoltSettings()inits new instance of bolt settings and copies instance values.
public BoltSettings(BoltSettings s)s BoltSettings
the instance of bolt settings to copy.
Copies field values to a new instance and returns.
public BoltSettings copy()BoltSettings
A new instance with the same values