SFurniture
ClientComposants
Dans cette classeStoreCustomData
- Fonctions
- Store
Custom Data - Get
Custom Data - Propriétés
- Inventory
ItemID - Floor
- Main
Collider - Game
Object
Membres 6
| Fonction | StoreCustomData | – |
| Fonction | GetCustomData | – |
| Propriété | InventoryItemID | Return the inventory ID of furniture. |
| Propriété | Floor | Return an SRoomFloor component of the floor this furniture is placed on. |
| Propriété | MainCollider | – |
| Propriété | GameObject | – |
Fonctions
StoreCustomData
void StoreCustomData(string key, string value)
Paramètres
| Nom | Type | Valeur par défaut |
|---|---|---|
| key | string | – |
| value | string | – |
Valeurs de retour
void
Exemple
Lua
Space.Host.ExecutingObject.Furniture.StoreCustomData("AKey", "AValue")
GetCustomData
string GetCustomData(string key)
Paramètres
| Nom | Type | Valeur par défaut |
|---|---|---|
| key | string | – |
Valeurs de retour
string
Exemple
Lua
theValue = Space.Host.ExecutingObject.Furniture.GetCustomData("AKey")
Propriétés
InventoryItemIDLecture seule
int InventoryItemID {get; }
Return the inventory ID of furniture.
Exemple
Lua
inventoryID = Space.Host.ExecutingObject.Furniture.InventoryItemID
FloorLecture seule
Return an SRoomFloor component of the floor this furniture is placed on.
Exemple
Lua
sRoomFloor = Space.Host.ExecutingObject.Furniture.Floor
MainColliderLecture seule
Exemple
Lua
collider = Space.Host.ExecutingObject.Furniture.MainCollider
GameObjectLecture seule
Exemple
Lua
theGameObject = Space.Host.ExecutingObject.Furniture.GameObject



