文档

Unity Engine

Unity Engine

LightProbes(int)

Creates a new LightProbes object with the given number of probes.
阅读时间1 分钟最后更新于 1 个月前

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.