void AMyPlayerController::BeginPlay()
{
Super::BeginPlay();
ULocalPlayer* LocalPlayer = Cast(GetLocalPlayer());
UEnhancedInputLocalPlayerSubsystem* UEnhancedInputLocalPlayerSubsystem = LocalPlayer->GetSubsystem();
}
void AMyPlayerController::BeginPlay()
{
Super::BeginPlay();
ULocalPlayer* LocalPlayer = Cast(GetLocalPlayer());
UEnhancedInputLocalPlayerSubsystem* UEnhancedInputLocalPlayerSubsystem = LocalPlayer->GetSubsystem();
}
UEnhancedInputLocalPlayerSubsystem* Subsystem = ULocalPlayer::GetSubsystem(GetLocalPlayer())
额 是不是要写个蓝图可见/蓝图调用?
GetSubsystem不传类型,程序怎么知道你要哪一个