ShapeClass

A script class that is instanced for every "scripted" Interactable Shape in the game.

Kind: API page

Environments: Game

Game

Open the full Game reference

An interactable part is a Shape that is usually built by the player and can be interacted with. For instance a button or an engine.

Can receive events sent with sm.event.sendToInteractable.

Fields

Name Type Description
interactable Interactable The Interactable game object belonging to this class instance. (The same as shape.interactable)
shape Shape The Shape game object that the Interactable is attached to. (The same as interactable.shape)
network Network A Network object that can be used to send messages between client and server.
storage Storage (Server side only.) A Storage object that can be used to store data for the next time loading this object after being unloaded.
data any Data from the "data" json element.
params any Parameter set with Interactable.setParams when created from a script.