# LightProbes(int)

> Creates a new LightProbes object with the given number of probes.

## Definition

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

```csharp
public LightProbes(int size)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The number of light probes to allocate space for.

### Remarks

After creating the object, use [LightProbes.SetPositionsSelf](/engine/6000.7/script-reference/unityengine/lightprobes/setpositionsself.md) and [LightProbes.SetSHCoefficientsSelf](/engine/6000.7/script-reference/unityengine/lightprobes/setshcoefficientsself.md) to assign probe positions and spherical harmonics coefficients, then call [LightProbes.Append](/engine/6000.7/script-reference/unityengine/lightprobes/append.md) to register the object for use in rendering.
