Static Functions

Namespaces that group related functions and constants.

This section contains 21 namespaces.

Page Description
Global Globals
sm The sm namespace contain all API features related to Scrap Mechanic.
sm.color A color is represented using a red, green, blue and alpha component. Colors are prominently used for blocks and parts that are colored by the Paint Tool.
sm.container No description or API members are present in the published source.
sm.debugDraw The Debug Draw api can be used for drawing geometric primitives for debug purposes.
sm.debugGui No description or API members are present in the published source.
sm.interactable No description or API members are present in the published source.
sm.json Parses and writes json files from and to lua values.
sm.log Used for logging information from scripts to the game log.
sm.noise Contains methods related to random number and noise generation.
sm.quat A quaternion is used to represent rotation as a generalization of complex numbers.
sm.scriptableObject ScriptableObject creation
sm.terrainData The data manager helps storing script data, both locally and between server and client in multiplayer games.
sm.terrainGeneration Allows reading and writing in game storage from terrain generation scripts.
sm.terrainHarvestable Functions and constants provided by sm.terrainHarvestable.
sm.terrainTile Reads .tile file data
sm.tunnelGenerator Use to generate cell data for producing tunnels through voxels.
sm.util Offers various math-related functions.
sm.uuid A universally unique identifier (UUID) is a 128-bit number that can guarantee uniqueness across space and time.
sm.vec3 A vector is used to represent position and direction in 3D space, using X, Y and Z coordinates.
sm.voxelTerrainCell Voxel grid