How property binding is working?

It’s a long time,but I have a similar idea right now. I want to make a plugin with a actor component,that has a property can be binded with function to change its value,just work like some property in UMG. Do you have solve this problem?

I describe I have done.
I create a new actor component class,and code like this:




But,the macro in last line is error,can not be compiled.
I have include “Components/Widget.h” ,and reshape tip like this.

and annoted the macro whith error,live compile as this,
屏幕截图 2023-06-30 155244
the property and the delegate are not binded,and the delegate can not custom.

so,what can i do to fix it?