---
title: isRealWorldProxy
framework: realitykit
role: symbol
role_heading: Instance Property
path: realitykit/directionallightcomponent/isrealworldproxy
---

# isRealWorldProxy

A Boolean that you use to control whether the directional light operates as a proxy for a real-world light.

## Declaration

```swift
var isRealWorldProxy: Bool
```

## Discussion

Discussion Set the value to true when you want the light to cast shadows on virtual content without illuminating anything in the scene. You can use this to create shadows on occlusion materials that accept dynamic lighting.

## See Also

### Setting intensity and shadows

- [intensity](realitykit/directionallightcomponent/intensity.md)
