# SRoomFloor

**成员** 7

|      |                                   |                                                                      |
| ---- | --------------------------------- | -------------------------------------------------------------------- |
| 属性 | [Enabled](#enabled)               | Status of enable or disable room floor component                     |
| 属性 | [Name](#name)                     | Name of this floor                                                   |
| 属性 | [Description](#description)       | Description of this floor.                                           |
| 属性 | [IsDefaultFloor](#isdefaultfloor) | Is this default floor?                                               |
| 属性 | [Furniture](#furniture)           | Get all furniture game objects                                       |
| 属性 | [Owner](#owner)                   | Return the ID of the user account that owns this room floor, if any. |
| 属性 | [GameObject](#gameobject)         | –                                                                    |

## 属性

### Enabled

bool Enabled {get; set; }

Status of enable or disable room floor component

示例

**Lua**

```lua
Space.Host.ExecutingObject.Floor.Enabled = false

```

### Name

string Name {get; }

Name of this floor

示例

**Lua**

```lua
Space.Host.ExecutingObject.Floor.Name

```

### Description

string Description {get; }

Description of this floor.

示例

**Lua**

```lua
floorDescription = Space.Host.ExecutingObject.Floor.Description

```

### IsDefaultFloor

bool IsDefaultFloor {get; }

Is this default floor?

示例

**Lua**

```lua
isDefault = Space.Host.ExecutingObject.Floor.IsDefaultFloor

```

### Furniture

[SGameObject](/docs/zh-Hans/scripting/client-scripting-api-reference/types/sgameobject.md)\[] Furniture {get; }

Get all furniture game objects

示例

**Lua**

```lua
furnitureInFloor = Space.Host.ExecutingObject.Floor.Furniture

```

### Owner

int Owner {get; }

Return the ID of the user account that owns this room floor, if any.

示例

**Lua**

```lua
ownerID = Space.Host.ExecutingObject.Floor.Owner

```

### GameObject

[SGameObject](/docs/zh-Hans/scripting/client-scripting-api-reference/types/sgameobject.md) GameObject {get; }

示例

**Lua**

```lua
theGameObject = Space.Host.ExecutingObject.Floor.GameObject

```
