Skip to content

Commit

Permalink
BT65 How to Use Blueprint Variables.cmproj
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Tristem committed Jul 7, 2016
1 parent 1b98756 commit 68679f4
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
Binary file modified BattleTank/Content/Tank/TankPlayerController_BP.uasset
Binary file not shown.
Binary file modified BattleTank/Content/UI/PlayerUI_BP.uasset
Binary file not shown.
1 change: 1 addition & 0 deletions BattleTank/Source/BattleTank/Public/Tank.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ class BATTLETANK_API ATank : public APawn
void Fire();

protected:
UPROPERTY(BlueprintReadOnly)
UTankAimingComponent* TankAimingComponent = nullptr;

UPROPERTY(BlueprintReadOnly)
Expand Down
8 changes: 5 additions & 3 deletions BattleTank/Source/BattleTank/Public/TankPlayerController.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,12 @@ UCLASS()
class BATTLETANK_API ATankPlayerController : public APlayerController
{
GENERATED_BODY()

private:

protected:
UFUNCTION(BlueprintCallable, Category = "Setup")
ATank* GetControlledTank() const;


private:
virtual void BeginPlay() override;

virtual void Tick( float DeltaTime ) override;
Expand Down

0 comments on commit 68679f4

Please sign in to comment.