Breakroom is now Sinewave Campus. Book a meeting

SFurniture

ClientComponents
On this classStoreCustomData
  1. Functions
  2. StoreCustomData
  3. GetCustomData
  4. Properties
  5. InventoryItemID
  6. Floor
  7. MainCollider
  8. GameObject
Members 6
FunctionStoreCustomData–
FunctionGetCustomData–
PropertyInventoryItemIDReturn the inventory ID of furniture.
PropertyFloorReturn an SRoomFloor component of the floor this furniture is placed on.
PropertyMainCollider–
PropertyGameObject–

Functions​

StoreCustomData​

void StoreCustomData(string key, string value)

Parameters

NameTypeDefault
keystring–
valuestring–

Returns

void

Example

Lua
Space.Host.ExecutingObject.Furniture.StoreCustomData("AKey", "AValue")

GetCustomData​

string GetCustomData(string key)

Parameters

NameTypeDefault
keystring–

Returns

string

Example

Lua
theValue = Space.Host.ExecutingObject.Furniture.GetCustomData("AKey")

Properties​

InventoryItemIDRead only​

int InventoryItemID {get; }

Return the inventory ID of furniture.

Example

Lua
inventoryID = Space.Host.ExecutingObject.Furniture.InventoryItemID

FloorRead only​

SRoomFloor Floor {get; }

Return an SRoomFloor component of the floor this furniture is placed on.

Example

Lua
sRoomFloor = Space.Host.ExecutingObject.Furniture.Floor

MainColliderRead only​

SCollider MainCollider {get; }

Example

Lua
collider = Space.Host.ExecutingObject.Furniture.MainCollider

GameObjectRead only​

SGameObject GameObject {get; }

Example

Lua
theGameObject = Space.Host.ExecutingObject.Furniture.GameObject