SFurniture
客户端组件
在此类中StoreCustomData
成员 6
| 函数 | StoreCustomData | – |
| 函数 | GetCustomData | – |
| 属性 | InventoryItemID | Return the inventory ID of furniture. |
| 属性 | Floor | Return an SRoomFloor component of the floor this furniture is placed on. |
| 属性 | MainCollider | – |
| 属性 | GameObject | – |
函数
StoreCustomData
void StoreCustomData(string key, string value)
参数
| 名称 | 类型 | 默认值 |
|---|---|---|
| key | string | – |
| value | string | – |
返回值
void
示例
Lua
Space.Host.ExecutingObject.Furniture.StoreCustomData("AKey", "AValue")
GetCustomData
string GetCustomData(string key)
参数
| 名称 | 类型 | 默认值 |
|---|---|---|
| key | string | – |
返回值
string
示例
Lua
theValue = Space.Host.ExecutingObject.Furniture.GetCustomData("AKey")
属性
InventoryItemID只读
int InventoryItemID {get; }
Return the inventory ID of furniture.
示例
Lua
inventoryID = Space.Host.ExecutingObject.Furniture.InventoryItemID
Floor只读
Return an SRoomFloor component of the floor this furniture is placed on.
示例
Lua
sRoomFloor = Space.Host.ExecutingObject.Furniture.Floor
MainCollider只读
示例
Lua
collider = Space.Host.ExecutingObject.Furniture.MainCollider
GameObject只读
示例
Lua
theGameObject = Space.Host.ExecutingObject.Furniture.GameObject



