UE-Specifier-Docs icon indicating copy to clipboard operation
UE-Specifier-Docs copied to clipboard

Add UPROPERTY( FieldNotify )

Open benoit-dubreuil opened this issue 2 years ago • 0 comments

The FieldProperty UPROPERTY specifier is missing on https://benui.ca/unreal/uproperty/.

FieldProperty is the C++ version of the Field Notify bell icon in the Blueprint Editor's Graph Editor. BP Bell Icon

Checking the Field Notify attribute of a field changes the its setter's visuals in the editor: BP FieldNotify get-set

You can add more than one delegate to variables their Field Notify attribute checked (FFieldNotificationIds), whether they are other variables with their Field Notify attribute checked or actual function pointers. BP notify many fields BP notify function

Regarding function pointers, according to https://docs.unrealengine.com/umg-viewmodel/, they must:

  • be Pure functions
  • be marked Const
  • return only one value
  • not take any input variables

The documentation comment of UP::FieldNotify (UFUNCTION) in the code file ObjectMacros.h is:

Generate a field entry for the NotifyFieldValueChanged interface.


Extra

The documentation comment of UC::CustomFieldNotify (UCLASS) in the code file ObjectMacros.h is:

Prevents automatic generation of the FieldNotify declaration.

The documentation comment of UF::FieldNotify (UFUNCTION) in the code file ObjectMacros.h is:

Generate a field entry for the NotifyFieldValueChanged interface.

benoit-dubreuil avatar Jan 08 '24 21:01 benoit-dubreuil