Version: Unity 7.0 Alpha (7000.0)
LanguageEnglish
  • C#

LicensingUtility.HasEntitlement

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public static bool HasEntitlement(string entitlement);

Parameters

Parameter Description
entitlement The requested entitlement string.

Returns

bool true if the user is entitled to the entitlement string; false otherwise, including when the licensing system is unreachable.

Description

Checks whether the current user is entitled to a specific entitlement.

This method denies access when the licensing system is unreachable, which is the right default for a permission check.