# RenderProbe

> Refreshes the probe's cubemap.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/6000.5/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

## RenderProbe()

Refreshes the probe's cubemap.

```csharp
public int RenderProbe()
```

### Returns

| Type                                                       | Description                                                                                                                                        |
| ---------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- |
| [int](https://learn.microsoft.com/dotnet/api/system.int32) | An integer representing a RenderID which can subsequently be used to check if the probe has finished rendering while rendering in time-slice mode. |

## RenderProbe(RenderTexture)

Refreshes the probe's cubemap.

```csharp
public int RenderProbe(RenderTexture targetTexture)
```

### Parameters

**** (\[RenderTexture]\(/engine/6000.5/script-reference/unityengine/rendertexture)): Target RenderTexture in which rendering should be done. Specifying null will update the probe's default texture.

### Returns

| Type                                                       | Description                                                                                                                                        |
| ---------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- |
| [int](https://learn.microsoft.com/dotnet/api/system.int32) | An integer representing a RenderID which can subsequently be used to check if the probe has finished rendering while rendering in time-slice mode. |
