# size

> Size that the occlusion area will have.

## Definition

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

```csharp
public Vector3 size { get; set; }
```

### Examples

```csharp
using UnityEngine;

[RequireComponent(typeof(OcclusionArea))]
public class Example : MonoBehaviour
{
    // Sets an Occlusion area of 10 units in x, 20 units in y and 30 units in z
    void Start()
    {
        transform.GetComponent<OcclusionArea>().size = new Vector3(10, 20, 30);
    }
}
```
