For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /server/classes/PlayerInputPermissions.md.

Class: PlayerInputPermissions

player

Beta

包含启用/禁用玩家输入权限的 API

Contains APIs to enable/disable player input permissions.

Methods

isPermissionCategoryEnabled()

isPermissionCategoryEnabled(permissionCategory): boolean

World Mutation Beta

Parameters

permissionCategory

InputPermissionCategory

Returns

boolean

Remarks

返回输入权限是否已启用。

Returns true if an input permission is enabled.

Throws

This function can throw errors.


setPermissionCategory()

setPermissionCategory(permissionCategory, isEnabled): void

World Mutation Beta

Parameters

permissionCategory

InputPermissionCategory

isEnabled

boolean

Returns

void

Remarks

启用或禁用某项输入权限。启用时输入将正常工作,禁用时则不工作。

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

Throws

This function can throw errors.

同领域相关