-
-
Save SamCarey99/fa085cb4ba5095c9e17b3a77b96c8c81 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnrealBuildTool; | |
public class MyProject : ModuleRules | |
{ | |
public MyProject(ReadOnlyTargetRules Target) : base(Target) | |
{ | |
PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs; | |
PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore", "HeadMountedDisplay" }); | |
PublicDependencyModuleNames.AddRange(new string[] {"AchievementSystem"}); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "AchievementSubSystem.h" | |
void ATestUnlock::UnlockAchievementExample() | |
{ | |
UGameInstance* GameInstance = UGameplayStatics::GetGameInstance(GetWorld()); | |
UAchievementSubSystem* AchievemSubsystem = GameInstance->GetSubsystem<UAchievementSubSystem>(); | |
AchievemSubsystem->Unlock(FName("TestAchievement")); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment