Skip to main content

ReflectionProbe.RenderProbe(RenderTexture targetTexture = nil)

Refreshes the probe's cubemap.

Parameters:

NameTypeDescription
targetTextureRenderTextureTarget RenderTexture in which rendering should be done. Specifying null will update the probe's default texture.

Returns:

typeDescription
numberAn integer representing a RenderID which can subsequently be used to check if the probe has finished rendering while rendering in time-slice mode.

Usage

---@type ReflectionProbe
local reflectionprobe;

---@type RenderTexture
local targetTexture;


local val0 = reflectionprobe.RenderProbe(targetTexture)