类 Camera实验性

包含与指定玩家的活动摄像机相关的方法。

Contains methods relating to the active camera for the specified player.

属性

isValid: boolean

返回摄像机是否可访问和使用。当摄像机所属的玩家已加载并且自身有效时,摄像机被视为有效。

Returns whether the Camera is valid to access and use. A Camera is considered valid when the owning Player of the Camera is loaded and valid itself.

方法

  • 实验性

    返回 void

    清除指定玩家的活动摄像机。使指定玩家结束任何正在进行的摄像机视角,包括任何平滑的摄像机运动,并返回到正常视角。

    Clears the active camera for the specified player. Causes the specified players to end any in-progress camera perspectives, including any eased camera motions, and return to their normal perspective.

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

    This function can throw errors.

  • 实验性

    参数

    • 可选fadeCameraOptions: CameraFadeOptions

      有关摄像机淡入淡出操作的附加选项。

      Additional options around camera fade operations.

    返回 void

    开始应用一个摄像机的淡入淡出过渡效果。淡入淡出过渡效果是一种全屏颜色的渐入、保持、然后渐出的效果。

    Begins a camera fade transition. A fade transition is a full-screen color that fades-in, holds, and then fades-out.

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

    This function can throw errors.