March 2019
Intermediate to advanced
708 pages
17h 9m
English
Our new delegate signature uses a slightly different macro for declaration. Note the _OneParam suffix at the end of DECLARE_DELEGATE_OneParam. As you'd expect, we also need to specify what type our parameter will be. Just like when we created a delegate without parameters, we can create an instance of the delegate as a member of our GameMode class.
Then, we create a new type of DelegateListener: one that is expecting a parameter to be passed into the function that it binds to the delegate. ...
Read now
Unlock full access