GFCameraBlend¶
API Reference / Camera / 类索引
- 路径:
addons/gf/extensions/camera/resources/gf_camera_blend.gd - 模块:
Camera - 继承:
Resource - API:
public - 类别:资源定义 (
resource_definition) - 首次版本:
3.17.0
通用相机过渡资源。 描述两个相机姿态之间的时间和缓动方式,不绑定具体相机节点、 目标选择规则、反馈效果或场景业务。
成员概览¶
| 类型 | 名称 | 签名 |
|---|---|---|
| 属性 | duration_seconds |
var duration_seconds: float = 0.35 |
| 属性 | transition_type |
var transition_type: Tween.TransitionType = Tween.TRANS_SINE |
| 属性 | ease_type |
var ease_type: Tween.EaseType = Tween.EASE_IN_OUT |
| 方法 | is_instant |
func is_instant() -> bool: |
| 方法 | sample_weight |
func sample_weight(elapsed_seconds: float) -> float: |
| 方法 | duplicate_blend |
func duplicate_blend() -> GFCameraBlend: |
属性¶
duration_seconds¶
- API:
public
过渡持续时间,单位秒。小于等于 0 时表示立即切换。
transition_type¶
- API:
public
Tween 过渡类型。
ease_type¶
- API:
public
Tween 缓动类型。
方法¶
is_instant¶
- API:
public
是否为立即切换。
返回:持续时间小于等于 0 时返回 true。
sample_weight¶
- API:
public
按已过时间采样 0..1 权重。
参数:
| 名称 | 说明 |
|---|---|
elapsed_seconds |
已过时间。 |
返回:缓动后的权重。
duplicate_blend¶
- API:
public
创建深拷贝。
返回:新过渡资源。