Lua API Reference
Introduction
Game environment
Classes
CharacterClass
GameClass
HarvestableClass
PlayerClass
ScriptableObjectClass
ShapeClass
ToolClass
UnitClass
WorldClass
Object Types 'userdata'
AiState
AreaTrigger
BlueprintVisualization
Body
BuilderGuide
Character
Color
Container
CullSphereGroup
Effect
GuiInterface
Harvestable
Interactable
Joint
Lift
LoadCellHandle
Network
PathNode
Player
Portal
Quat
RaycastResult
ScriptableObject
Shape
Storage
Tool
Unit
Uuid
Vec3
Widget
World
Static Function Namespaces
GLOBAL
sm
sm.ai
sm.areaTrigger
sm.audio
sm.body
sm.builderGuide
sm.camera
sm.cell
sm.challenge
sm.character
sm.color
sm.construction
sm.container
sm.creation
sm.cullSphereGroup
sm.debris
sm.debugDraw
sm.effect
sm.event
sm.game
sm.gui
sm.gui.widget
sm.harvestable
sm.interactable
sm.item
sm.joint
sm.json
sm.localPlayer
sm.log
sm.melee
sm.menuCreation
sm.noise
sm.particle
sm.pathNode
sm.pathfinder
sm.physics
sm.player
sm.portal
sm.projectile
sm.quat
sm.render
sm.scriptableObject
sm.shape
sm.storage
sm.tool
sm.unit
sm.util
sm.uuid
sm.vec3
sm.visualization
sm.world
Terrain environment
Classes
Object Types 'userdata'
Color
Harvestable
Quat
Uuid
Vec3
World
Static Function Namespaces
GLOBAL
sm
sm.color
sm.debugDraw
sm.harvestable
sm.json
sm.log
sm.noise
sm.quat
sm.terrainData
sm.terrainGeneration
sm.terrainTile
sm.util
sm.uuid
sm.vec3
sm.gui.widget
Associated object type:
Widget
Removed! Don't use.
Functions:
destroy
sm.gui.widget.destroy()
Deprecated:
Use
GuiInterface
Removed!