Exposing VariablesΒΆ
Add the Macro following to MaxGrabDistance
protected:
UPROPERTY(EditAnywhere, BlueprintReadOnly)
float MaxGrabDistance = 100;
Ctrl-Shift-B to build.
Go back to Grabber Blueprint and compile.
Right click on MaxGrabDistance_0 find referene and we see that it is used only in 1 place
Delete the MaxGrabDistance_0 variable and replace it with MaxGrabDistance (drag wire out from the X box)
Fly next to a pumpkin, right click anywhere and select Play from here and make sure that grabber still works