The SFurniture class is component of RoomFurniture
Members
InventoryItemID
Return the inventory ID of furniture.
furniture = Space.Scene.Find("Cube").Furniture
inventoryId = furniture.InventoryItemID;
--get InventoryID of the furniture.
Space.Log(inventoryId);
--print the inventory id.
StoreCustomData
void StoreCustomData
(string key, string value);
Set custom key to furniture.
furniture = Space.Scene.Find("Cube").Furniture;
--get the roomfurniture component on your furniture.
furniture.StoreCustomData("custom key","123")
--set key and value to the furniture.
GetCustomData
string GetCustomData
(string key);
Get custom data from furniture.
furniture = Space.Scene.Find("Cube").Furniture;
--get the roomfurniture component.
Space.Log(furniture.GetCustomData("custom key"));
--get the value from furniture by key.
Scripting Portal
|
|
Common
|
|
|
Key Classes
|
|
|
Helper Classes
|
|
|
Scripting samples and tutorials
|
|
|