Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


LightProbes(int)

Creates a new LightProbes object with the given number of probes.
Read time 1 minuteLast updated 6 days ago

Definition

  • Type: Constructor
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public LightProbes(int size)

Parameters

size

The number of light probes to allocate space for.

Remarks

After creating the object, use LightProbes.SetPositionsSelf and LightProbes.SetSHCoefficientsSelf to assign probe positions and spherical harmonics coefficients, then call LightProbes.Append to register the object for use in rendering.