x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Bind non-UObject function to delegate

Hello,

seems like there is no way to bind function located in non-UObject class to a dynamic multicast delegate declared with DECLARE_DYNAMIC_MULTICAST_DELEGATE and its variations, or am i missing something here? I'm trying to bind function of Slate widget so i can update widget according to the changes in UObject based object.

Would be glad to hear any replies, thank you.

Product Version: Not Selected
Tags:
more ▼

asked Mar 09 '15 at 02:34 PM in C++ Programming

avatar image

BiggestSmile
1.6k 54 38 105

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

Actually, using non-dynamic delegate and CreateRaw function solves the problem, makes it impossible to use the delegate with Blueprint, though, but it perfectly suits my needs.

Regarding your answer, Shadowriver, i know that reflection system works only with structures wrapped in UE macroses, and you actually answered some different question, not mine. Thank you for your time, though.

more ▼

answered Mar 13 '15 at 03:05 PM

avatar image

BiggestSmile
1.6k 54 38 105

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

Yes, reflection system only supports classes in UObject, it won't see functions and varables outside of it, so your function need to be in UObject or use UMG insted. It's one of the reasons why UMG was made was to create Slate wrapper in UObject environment.

more ▼

answered Mar 09 '15 at 02:45 PM

avatar image

Shadowriver
37.2k 936 172 1116

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question