类 PlayerInputPermissions实验性

Contains APIs to enable/disable player input permissions.

属性

cameraEnabled: boolean

Camera input permissions for the player. If set to true, input relating to camera movement is enabled for the player.

movementEnabled: boolean

Movement input permissions for the player. If set to true input relating to movement is enabled for the player.

方法

  • 实验性

    参数

    返回 void

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

    无法在只读模式下调用此函数,详见 WorldBeforeEvents

    This function can throw errors.