Skip to content

Add UPROPERTY( FieldNotify ) #25

@benoit-dubreuil

Description

@benoit-dubreuil

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.

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentation

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions