HasEntitlements(string[])
Returns which of a list of entitlements are granted to the current user.
Read time 1 minuteLast updated 8 days ago
Definition
- Type: Method
- Namespace: UnityEditor.Licensing
- Assembly: UnityEditor.CoreModule
public static string[] HasEntitlements(string[] entitlements)
Parameters
The requested list of entitlement strings.
Returns
Type | Description |
|---|---|
| string[] | The entitlement strings from the requested list that the user is entitled to. |
Remarks
This method returns only the granted entitlements, and returns an empty array when the licensing system is unreachable, which is the right default for a permission check.