# How to bind to OnScalabilitySettingsChanged event

**URL:** <https://forums.unrealengine.com/t/how-to-bind-to-onscalabilitysettingschanged-event/511145>\
**Category:** C++\
**Tags:** unreal-engine, UE5-0, Code, question\
**Created:** [March 31, 2022, 9:04am UTC](https://forums.unrealengine.com/t/how-to-bind-to-onscalabilitysettingschanged-event/511145 "2022-03-31T09:04:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![AHGS\_Jens](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AHGS\_Jens](https://forums.unrealengine.com/u/AHGS_Jens)\
**Post date:** [March 31, 2022, 9:04am UTC](https://forums.unrealengine.com/t/how-to-bind-to-onscalabilitysettingschanged-event/511145/1 "2022-03-31T09:04:35Z")

</div>

I want to do additional operations when texture quality is changed and have been trying to bind to the Scalability::OnScalabilitySettingsChanged event as a way to trigger the code, but after adding my function to the event the event seem unaffected like my function wasn’t added to the InvocationList.  
The strange thing is that I see the function being added to the list when I use the debugger, but Scalability::OnScalabilitySettingsChanged remains empty after my bind function.  
This of course results in my function not getting triggered by the broadcast when settings are changed.

Code used to bind the function  
`DelegateHandle = Scalability::OnScalabilitySettingsChanged.AddUObject(this, &UScalabilitySubsystem::UpdateScalability);`

I have tried adding my function in many other ways as well as binding using Lambda, but it just remain empty afterwards.

I don’t know what I am doing wrong and suspect that there is something wrong with the setup for the OnScalabilitySettingsChanged event itself, but there might be something I am overlooking.

Have anyone else managed to successfully bind to this event?

---

<div class="post-metadata">

**Author:** ![Corteno](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Corteno](https://forums.unrealengine.com/u/Corteno)\
**Post date:** [December 23, 2024, 5:53pm UTC](https://forums.unrealengine.com/t/how-to-bind-to-onscalabilitysettingschanged-event/511145/2 "2024-12-23T17:53:29Z")

</div>

Hi, 2 years late, but it might help others who stumble upon this like I did. The following setup worked for me.

You can use this to bind a function to it:

```auto
Scalability::OnScalabilitySettingsChanged.AddUObject(this, &ThisClass::OnScalabilityChangedListener);

```

And the function you are binding should look like this:

```auto
void OnScalabilityChangedListener(const Scalability::FQualityLevels& QualityLevels);

```
