Last active
February 5, 2019 17:13
-
-
Save Turupawn/30f7bbfc0d6263691c65b55ef1c14258 to your computer and use it in GitHub Desktop.
Plugin callbacks on c++
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UCLASS() | |
class UMyUObject : public UActorComponent | |
{ | |
GENERATED_BODY() | |
public: | |
void OnMyUObject_Handler(int32 response_code); | |
}; | |
void UMyUObject::OnMyUObject_Handler(int32 response_code) | |
{ | |
} | |
UMyUObject* my_uobject; | |
my_uobject = NewObject<UMyUObject>(); | |
UModioComponent::OnEmailRequestDelegate.AddUObject(my_uobject, &UMyUObject::OnMyUObject_Handler); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment