# SReflectionProbe

**成员** 4

|      |                             |                                                                                 |
| ---- | --------------------------- | ------------------------------------------------------------------------------- |
| 函数 | [RenderProbe](#renderprobe) | Refreshes the probe's cubemap.                                                  |
| 属性 | [Center](#center)           | The center of the box area in which reflections will be applied to the objects. |
| 属性 | [Size](#size)               | The size of the box area in which reflections will be applied to the objects.   |
| 属性 | [GameObject](#gameobject)   | –                                                                               |

## 函数

### RenderProbe

void RenderProbe()

Refreshes the probe's cubemap.

返回值

`void`

示例

**Lua**

```lua
Space.Host.ExecutingObject.ReflectionProbe.RenderProbe()

```

## 属性

### Center

[SVector](/docs/zh-Hans/scripting/client-scripting-api-reference/types/svector.md) Center {get; set; }

The center of the box area in which reflections will be applied to the objects. Measured in the probe's local space.

示例

**Lua**

```lua
vectorCenter = Space.Host.ExecutingObject.ReflectionProbe.Center

```

### Size

[SVector](/docs/zh-Hans/scripting/client-scripting-api-reference/types/svector.md) Size {get; set; }

The size of the box area in which reflections will be applied to the objects. Measured in the probe's local space.

示例

**Lua**

```lua
vectorSize = Space.Host.ExecutingObject.ReflectionProbe.Size

```

### GameObject

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

示例

**Lua**

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

```
