Breakroom is now Sinewave Campus. Book a meeting

SFurniture

客户端组件
在此类中StoreCustomData
  1. 函数
  2. StoreCustomData
  3. GetCustomData
  4. 属性
  5. InventoryItemID
  6. Floor
  7. MainCollider
  8. GameObject
成员 6
函数StoreCustomData–
函数GetCustomData–
属性InventoryItemIDReturn the inventory ID of furniture.
属性FloorReturn an SRoomFloor component of the floor this furniture is placed on.
属性MainCollider–
属性GameObject–

函数​

StoreCustomData​

void StoreCustomData(string key, string value)

参数

名称类型默认值
keystring–
valuestring–

返回值

void

示例

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

GetCustomData​

string GetCustomData(string key)

参数

名称类型默认值
keystring–

返回值

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只读​

SRoomFloor Floor {get; }

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

示例

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

MainCollider只读​

SCollider MainCollider {get; }

示例

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

GameObject只读​

SGameObject GameObject {get; }

示例

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