# center

> Center of the occlusion area relative to the transform.

## Definition

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

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

### Examples

```csharp
using UnityEngine;

[RequireComponent(typeof(OcclusionArea))]
public class Example : MonoBehaviour
{
    // Sets the center of the occlusion area to the center of the transform
    void Start()
    {
        transform.GetComponent<OcclusionArea>().center = Vector3.zero;
    }
}
```
