October 2016
Intermediate to advanced
452 pages
9h 47m
English
So far, the delegates that we've used haven't taken any input parameters. This recipe shows you how to change the signature of the delegate so that it accepts some input.
Be sure you've followed the recipe at the beginning of this chapter, which shows you how to create a TriggerVolume and the other infrastructure that we require for this recipe.
GameMode:DECLARE_DELEGATE_OneParam(FParamDelegateSignature, FLinearColor)
GameMode:FParamDelegateSignatureMyParameterDelegate;
Actor class called ParamDelegateListener. Add the following to the declaration:UFUNCTION() void SetLightColor(FLinearColorLightColor); UPROPERTY() ...
Read now
Unlock full access