UnrealEngine:Pawn类

发布时间 2023-06-20 17:59:32作者: 言午丶

DefaultPawn

#include "CoreMinimal.h"

#include "UObject/ObjectMacros.h"

#include "GameFramework/Pawn.h"

#include "DefaultPawn.generated.h"

 

class UInputComponent;

class UPawnMovementComponent;

class USphereComponent;

class UStaticMeshComponent;

 

UCLASS(config=Game, Blueprintable, BlueprintType)

class ENGINE_APU ADefaultPawn : public APwan

{

  GENERATED_UCLASS_BODY()

 

  virtual UPawnMovementComponent* GetMovementComponent() const override;

  virtual void SetupPlayerInputComponent(UInputComponent* InInputComponent) overrie;

  virtual void UpdateNavigationRelevance() override;

 

  UFUNCTION(BlueprintCallable, Category="Pawn")

  virtual void MoveForward(float Val);

 

  UFUNCTION(BlueprintCallable, Category="Pawn")

  virtual void MoveRight(float Val);

  

  UFUNCTION(BlueprintCallable, Category="Pawn")

  virtual void MoveUp_World(float Val);

  

  UFUNCTION(BlueprintCallable, Category="Pawn")

  virtual void TurnAtRate(float Rate);

 

  UFUNCTION(BlueprintCallablem Category="Pawn")

  virtual void LookUpAtRate(float Rate);

 

  UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category="Pawn")

  float BaseTurnRate;

 

  UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category="Pawn");

  

}