# Auto Exposure ROI not working

**URL:** <https://community.stereolabs.com/t/auto-exposure-roi-not-working/275>\
**Category:** C#\
**Tags:** windows, unity\
**Created:** [June 2, 2021, 10:43pm UTC](https://community.stereolabs.com/t/auto-exposure-roi-not-working/275 "2021-06-02T22:43:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sanidhya](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/s/9fc29f/32.png) [@Sanidhya](https://community.stereolabs.com/u/Sanidhya)\
**Post date:** [June 2, 2021, 10:43pm UTC](https://community.stereolabs.com/t/auto-exposure-roi-not-working/275/1 "2021-06-02T22:43:25Z")

</div>

Hi,

I am trying to set auto exposure to work only for a particular region in the image.  
Tried doing :  
**manager.zedCamera.SetCameraSettings(sl.CAMERA\_SETTINGS.AEC\_AGC\_ROI,2, new sl.iRect(){x=0, y=0, width=1920, height=1080}, false/true);** in unity.  
This should theoretically work same as just enabling auto exposure if the resolution is 1080p. It does not seem to have any effect on the exposure. Am I doing something wrong or Is there anything else I have to do here?
