# orthographicSize

> Projection's half-size when in orthographic mode.

## Definition

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

> **Warning:**
>
> **Deprecated.** Projector component is deprecated now that the Built-In Render Pipeline is deprecated. To use an alternative, refer to the documentation in the component help icon. #from(6000.5)

```csharp
public float orthographicSize { get; set; }
```

### Remarks

This is half of the vertical size of the projection volume. Horizontal projection size varies depending on [Projector.aspectRatio](/engine/6000.6/script-reference/unityengine/projector/aspectratio.md). Orthographic size is ignored when projection is not orthographic (see [Projector.orthographic](/engine/6000.6/script-reference/unityengine/projector/orthographic.md)). Additional Resources: [projector component](/engine/6000.6/manual/visual-effects/decals/decals-birp/class-projector.md).

### Examples

```csharp
using UnityEngine;

public class Example : MonoBehaviour
{
    void Start()
    {
        Projector proj = GetComponent<Projector>();
        proj.orthographic = true;
        proj.orthographicSize = 2.0f;
    }
}
```
