Legacy Documentation: Version 5.0
Language: English
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

ReflectionProbe.RenderProbe

Switch to Manual
public function RenderProbe(targetTexture: RenderTexture = null): int;

Parameters

targetTextureTarget RendeTexture in which rendering should be done. Specifying null will update the probe's default texture.

Returns

int An integer representing a RenderID which can subsequently be used to check if the probe has finished rendering while rendering in time-slice mode. See Also: IsFinishedRendering See Also: timeSlicingMode

Description

Refreshes the probe's cubemap.