SFurniture
ClientComponents
On this classStoreCustomData
- Functions
- Store
Custom Data - Get
Custom Data - Properties
- Inventory
ItemID - Floor
- Main
Collider - Game
Object
Members 6
| Function | StoreCustomData | – |
| Function | GetCustomData | – |
| Property | InventoryItemID | Return the inventory ID of furniture. |
| Property | Floor | Return an SRoomFloor component of the floor this furniture is placed on. |
| Property | MainCollider | – |
| Property | GameObject | – |
Functions
StoreCustomData
void StoreCustomData(string key, string value)
Parameters
| Name | Type | Default |
|---|---|---|
| key | string | – |
| value | string | – |
Returns
void
Example
Lua
Space.Host.ExecutingObject.Furniture.StoreCustomData("AKey", "AValue")
GetCustomData
string GetCustomData(string key)
Parameters
| Name | Type | Default |
|---|---|---|
| key | string | – |
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
Return an SRoomFloor component of the floor this furniture is placed on.
Example
Lua
sRoomFloor = Space.Host.ExecutingObject.Furniture.Floor
MainColliderRead only
Example
Lua
collider = Space.Host.ExecutingObject.Furniture.MainCollider
GameObjectRead only
Example
Lua
theGameObject = Space.Host.ExecutingObject.Furniture.GameObject



