Skip to content

重置镜头

功能描述

将镜头重置到默认位置,并支持可选的过渡动画效果。

语法结构

text
cam reset [过渡类型] [过渡时间]

参数详解

参数必需示例说明
过渡类型linear / ease_in_out / none过渡动画类型,不填或填 none 表示无动画
过渡时间1.0 / 2.5过渡动画的持续时间(秒),默认值为 1.0

过渡类型说明

类型说明
不填默认无动画,直接重置
none显式指定无动画
linear线性过渡
ease_in_out缓入缓出过渡

默认值规则

  • 不写过渡类型 → cam_tween_type=""cam_tween_time=0.0(无动画)
  • nonecam_tween_type="none"cam_tween_time=0.0(无动画)
  • 写其他过渡类型但不写时间 → cam_tween_time=1.0(默认1秒)

示例

text
cam reset
cam reset none
cam reset linear
cam reset linear 1.0
cam reset ease_in_out 2.5

Released under BSD3-Clause License.