# How do I get and apply the ambient light estimate values from the hololens 2 to a DirectionalLight

**URL:** <https://forums.unrealengine.com/t/how-do-i-get-and-apply-the-ambient-light-estimate-values-from-the-hololens-2-to-a-directionallight/479387>\
**Category:** Rendering\
**Tags:** Mixed-Reality, unreal-engine, Lighting, UE4, Blueprint, question, Hololens\
**Created:** [February 25, 2021, 9:32am UTC](https://forums.unrealengine.com/t/how-do-i-get-and-apply-the-ambient-light-estimate-values-from-the-hololens-2-to-a-directionallight/479387 "2021-02-25T09:32:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_4d95e8ca](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4d95e8ca](https://forums.unrealengine.com/u/anonymous_user_4d95e8ca)\
**Post date:** [February 25, 2021, 9:32am UTC](https://forums.unrealengine.com/t/how-do-i-get-and-apply-the-ambient-light-estimate-values-from-the-hololens-2-to-a-directionallight/479387/1 "2021-02-25T09:32:19Z")

</div>

So far i tried to get the light estimate values by calling GetCurrentLightEstimate, which should return a UARLightEstimate. I should be able to cast it to a derived type according to my session config, which is UARBasicLightEstimate. The UARBasicLightEstimate object holds the information that would be applied on the directional light.

The problem is that GetCurrentLightEstimate returns null and I do not know why.

 ![330828-screenshot-2021-02-25-102920.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/3/0/430a2e6c174dfa19d26b16af79dfa095f2cd26a6.png)
