Exposing VariablesΒΆ

  1. Add the Macro following to MaxGrabDistance

protected:
    UPROPERTY(EditAnywhere, BlueprintReadOnly)
    float MaxGrabDistance = 100;
  1. Ctrl-Shift-B to build.

  2. Go back to Grabber Blueprint and compile.

  3. Right click on MaxGrabDistance_0 find referene and we see that it is used only in 1 place

  4. Delete the MaxGrabDistance_0 variable and replace it with MaxGrabDistance (drag wire out from the X box)

../../_images/replace_max_grab_distance.PNG
  1. Fly next to a pumpkin, right click anywhere and select Play from here and make sure that grabber still works