編集

次の方法で共有


PlayerInputPermissions Class

Contains APIs to enable/disable player input permissions.

Methods

isPermissionCategoryEnabled

isPermissionCategoryEnabled(permissionCategory: InputPermissionCategory): boolean

Returns true if an input permission is enabled.

Parameters

Returns boolean

Notes:

  • This function can't be called in read-only mode.
  • This function can throw errors.

setPermissionCategory

setPermissionCategory(permissionCategory: InputPermissionCategory, isEnabled: boolean): void

Enable or disable an input permission. When enabled the input will work, when disabled will not work.

Parameters

Notes:

  • This function can't be called in read-only mode.
  • This function can throw errors.