i want make Delegate In ScrollBox.cpp
such as
DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam( FOnMouseWheeled, const SWidget* );
but this Code bring compile error
DYNAMIC DLELGATE can not used in SWidget?
i want make Delegate In ScrollBox.cpp
such as
DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam( FOnMouseWheeled, const SWidget* );
but this Code bring compile error
DYNAMIC DLELGATE can not used in SWidget?
Can you show the error log?
Translation
syntax error : missing ‘;’ before ‘class-head’
missing type specifier - int assumed. Note: C++ does not support default-int
FOnMouseWheeled_DelegateWrapper: identifier not found
Hmmm it looks ok to me, but in slate dynamic delegates are not used at all. I only see normal delegates with SLATE_EVENT argument, so you might consider using it
Can you tell what your use case of this and why do you modify engine code insted of trying to make your own widget in less invasive way?
Did you tried rebuilding? it might be issue in intermediate files too
Um…Use SLATE_EVENT is possible…For now, use this macro…
Thank you!!!