title: Multicast Delegates - C++
body: <p>I would like to receive a multicast event from the <a href="https://github.com/leapmotion/LeapUnreal" rel="nofollow noreferrer">LeapMotion plugin</a> in C++. From their documentation, they mention the following things:</p>
  
  <pre><code>&gt; On Hand Grabbed Event called when a leap hand grab gesture is
  &gt; detected. Signature: const FLeapHandData&amp;, Hand, see FLeapHandData
  &gt; 
  &gt; FLeapHandSignature OnHandGrabbed;
  </code></pre>
  
  <p>So in my .cpp file I added the following:</p>
  
  <pre><code>ALeapMotionGesture::ALeapMotionGesture()
  {
      PrimaryActorTick.bCanEverTick = true;
      Leap = CreateDefaultSubobject&lt;ULeapComponent&gt;(TEXT("Leap"));
  }
  
  void ALeapMotionGesture::BeginPlay()
  {
      Super::BeginPlay();
  
      if (Leap != nullptr) {
          FScriptDelegate Delegate;
          Delegate.BindUFunction(this, FName("HandGrabbed"));
          Leap-&gt;OnHandGrabbed.Add(Delegate);
      }
  }
  
  void ALeapMotionGesture::HandGrabbed(const FLeapHandData&amp; Hand) {
      UE_LOG(LogTemp, Warning, TEXT("Hand Grabbed"));
  }
  </code></pre>
  
  <p>As it is the first time I'm using delegates in Unreal/C++, I would like to know how I could make it work?</p>
  
  <p>It compiles fine however I do not receive any events.</p>