神岛 API 文档 - ArenaPro版
    Preparing search index...

    游戏点击事件类,用于封装游戏中的点击事件信息。

    Game click event class, used to encapsulate game click event information.

    Index

    Properties

    button: ACTION0 | ACTION1

    被按下的按钮,ACTION0 表示左键,ACTION1 表示右键。

    The button that was pressed, ACTION0 represents the left mouse button, ACTION1 represents the right mouse button.

    发起点击事件的玩家实体。

    The player entity that initiated the click event.

    clickerPosition: GameVector3

    点击发生时点击者的位置。

    The position of the clicker when the click event occurred.

    distance: number

    点击者与被点击实体之间的距离。

    The distance between the clicker and the clicked entity.

    entity: GameEntity

    被点击的游戏实体。

    The game entity that was clicked.

    从点击者到被点击实体的射线检测结果。

    The raycast result from the clicker to the clicked entity.

    tick: number

    发生点击事件的游戏刻。

    The game tick when the click event occurred.