类 PlayerInputPermissions实验性

Contains APIs to enable/disable player input permissions.

方法

  • 预览版 实验性

    参数

    返回 boolean

    Returns true if an input permission is enabled.

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

    This function can throw errors.

    Error

  • 预览版 实验性

    参数

    返回 void

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

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

    This function can throw errors.