Skip to content

Instantly share code, notes, and snippets.

@Turupawn
Last active February 5, 2019 17:13
Show Gist options
  • Save Turupawn/30f7bbfc0d6263691c65b55ef1c14258 to your computer and use it in GitHub Desktop.
Save Turupawn/30f7bbfc0d6263691c65b55ef1c14258 to your computer and use it in GitHub Desktop.
Plugin callbacks on c++
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