USubsystemBlueprintLibrary::GetLocalPlayerSubSystemFromPlayerController

Get a Local Player Subsystem from the LocalPlayer associated with the provided context If the player controller isn't associated to a LocalPlayer nullptr is returned

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/Subsystems/SubsystemBlueprintLibrary.h

Include

#include "Subsystems/SubsystemBlueprintLibrary.h"

Source

/Engine/Source/Runtime/Engine/Private/Subsystems/SubsystemBlueprintLibrary.cpp

Syntax

static ULocalPlayerSubsystem * GetLocalPlayerSubSystemFromPlayerController
(
    APlayerController * PlayerController,
    TSubclassOf< ULocalPlayerSubsystem > Class
)

Remarks

Get a Local Player Subsystem from the LocalPlayer associated with the provided context If the player controller isn't associated to a LocalPlayer nullptr is returned

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss