Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
artberry's avatar
artberry
Explorer
10 years ago
Solved

Question about Entitlement check

Hello 

I don't know how to use entitlement check function in the 4.13 unreal engine.

This is the first time to use entitlement check function. 

I added to the DefaultEngine.ini

[OnlineSubsystem]
DefaultPlatformService=Oculus

[OnlineSubsystemOculus]
bEnabled=true
OculusAppId="1111111111111111"

and then I edited projectName.build.cs

public class RunningJoe : ModuleRules
{
public RunningJoe(TargetInfo Target)
{
PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore", "OnlineSubsystem" });

PrivateDependencyModuleNames.AddRange(new string[] {  });

// Uncomment if you are using Slate UI
// PrivateDependencyModuleNames.AddRange(new string[] { "Slate", "SlateCore" });
// Uncomment if you are using online features
PrivateDependencyModuleNames.Add("OnlineSubsystem");

// To include OnlineSubsystemSteam, add it to the plugins section in your uproject file with the Enabled attribute set to true
}
}

finally I used verify entitlement function like this. 



Is this alright? 

thank you 
  • In your Build.cs, also add:

    PrivateDependencyModuleNames.Add("OnlineSubsystemOculus");

    You don't need OnlineSubsystem in your Public Dependencies since you already have it in your private dependency

2 Replies

Replies have been turned off for this discussion
  • brian_jew's avatar
    brian_jew
    Expert Protege
    In your Build.cs, also add:

    PrivateDependencyModuleNames.Add("OnlineSubsystemOculus");

    You don't need OnlineSubsystem in your Public Dependencies since you already have it in your private dependency