mirror of
https://github.com/godotengine/godot-docs-l10n.git
synced 2026-01-04 10:09:56 +03:00
Merge Sphinx translations with Weblate translations, sync classref
This commit is contained in:
@@ -83,7 +83,7 @@ GDScript 专用的实用函数及注解列表,可在任何脚本中访问。
|
||||
|
||||
**PI** = ``3.14159265358979`` :ref:`🔗<class_@GDScript_constant_PI>`
|
||||
|
||||
常量,表示圆的周长是直径的多少倍。相当于 ``TAU / 2``\ ,或以弧度表示的180度。
|
||||
常量,表示圆的周长是直径的多少倍。相当于 ``TAU / 2``\ ,即 180 度旋转。
|
||||
|
||||
.. _class_@GDScript_constant_TAU:
|
||||
|
||||
@@ -91,7 +91,7 @@ GDScript 专用的实用函数及注解列表,可在任何脚本中访问。
|
||||
|
||||
**TAU** = ``6.28318530717959`` :ref:`🔗<class_@GDScript_constant_TAU>`
|
||||
|
||||
圆常量,单位圆的周长,单位为弧度。相当于 ``PI * 2``\ ,即 360 度的弧度值。
|
||||
圆常量,单位圆的周长,单位为弧度。相当于 ``PI * 2``\ ,即 360 度旋转。
|
||||
|
||||
.. _class_@GDScript_constant_INF:
|
||||
|
||||
@@ -126,7 +126,7 @@ GDScript 专用的实用函数及注解列表,可在任何脚本中访问。
|
||||
|
||||
**@export**\ (\ ) :ref:`🔗<class_@GDScript_annotation_@export>`
|
||||
|
||||
将后续的属性标记为导出属性(可以在检查器面板中编辑并保存至磁盘)。要控制导出属性的类型,请使用类型提示标记。
|
||||
Mark the following property as exported (editable in the Inspector dock and saved to disk). To control the type of the exported property, use the type hint notation.
|
||||
|
||||
::
|
||||
|
||||
@@ -134,33 +134,33 @@ GDScript 专用的实用函数及注解列表,可在任何脚本中访问。
|
||||
|
||||
enum Direction {LEFT, RIGHT, UP, DOWN}
|
||||
|
||||
# 内置类型。
|
||||
# Built-in types.
|
||||
@export var string = ""
|
||||
@export var int_number = 5
|
||||
@export var float_number: float = 5
|
||||
|
||||
# 枚举。
|
||||
# Enums.
|
||||
@export var type: Variant.Type
|
||||
@export var format: Image.Format
|
||||
@export var direction: Direction
|
||||
|
||||
# 资源。
|
||||
# Resources.
|
||||
@export var image: Image
|
||||
@export var custom_resource: CustomResource
|
||||
|
||||
# 节点。
|
||||
# Nodes.
|
||||
@export var node: Node
|
||||
@export var custom_node: CustomNode
|
||||
|
||||
# 类型数组。
|
||||
# Typed arrays.
|
||||
@export var int_array: Array[int]
|
||||
@export var direction_array: Array[Direction]
|
||||
@export var image_array: Array[Image]
|
||||
@export var node_array: Array[Node]
|
||||
|
||||
\ **注意:**\ 自定义资源和自定义节点必须使用 ``class_name`` 注册为全局类。
|
||||
\ **Note:** Custom resources and nodes should be registered as global classes using ``class_name``, since the Inspector currently only supports global classes. Otherwise, a less specific type will be exported instead.
|
||||
|
||||
\ **注意:**\ 节点的导出只有派生自 :ref:`Node<class_Node>` 的类才支持,并且还有一些其他限制。
|
||||
\ **Note:** Node export is only supported in :ref:`Node<class_Node>`-derived classes and has a number of other limitations.
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
@@ -172,7 +172,7 @@ GDScript 专用的实用函数及注解列表,可在任何脚本中访问。
|
||||
|
||||
**@export_category**\ (\ name\: :ref:`String<class_String>`\ ) :ref:`🔗<class_@GDScript_annotation_@export_category>`
|
||||
|
||||
为后续导出属性定义一个新类别。方便在检查器面板中组织属性。
|
||||
为后续导出属性定义一个新类别,方便在检查器面板中组织属性。
|
||||
|
||||
另见 :ref:`@GlobalScope.PROPERTY_USAGE_CATEGORY<class_@GlobalScope_constant_PROPERTY_USAGE_CATEGORY>`\ 。
|
||||
|
||||
@@ -213,13 +213,13 @@ GDScript 专用的实用函数及注解列表,可在任何脚本中访问。
|
||||
|
||||
**@export_custom**\ (\ hint\: :ref:`PropertyHint<enum_@GlobalScope_PropertyHint>`, hint_string\: :ref:`String<class_String>`, usage\: |bitfield|\[:ref:`PropertyUsageFlags<enum_@GlobalScope_PropertyUsageFlags>`\] = 6\ ) :ref:`🔗<class_@GDScript_annotation_@export_custom>`
|
||||
|
||||
Allows you to set a custom hint, hint string, and usage flags for the exported property. Note that there's no validation done in GDScript, it will just pass the parameters to the editor.
|
||||
允许为导出的属性设置自定义提示、提示字符串、和使用标志。请注意,GDScript 中没有进行任何验证,它只是将参数传递给编辑器。
|
||||
|
||||
::
|
||||
|
||||
@export_custom(PROPERTY_HINT_NONE, "suffix:m") var suffix: Vector3
|
||||
|
||||
\ **Note:** Regardless of the ``usage`` value, the :ref:`@GlobalScope.PROPERTY_USAGE_SCRIPT_VARIABLE<class_@GlobalScope_constant_PROPERTY_USAGE_SCRIPT_VARIABLE>` flag is always added, as with any explicitly declared script variable.
|
||||
\ **注意:**\ 无论 ``usage`` 值如何,总会添加 :ref:`@GlobalScope.PROPERTY_USAGE_SCRIPT_VARIABLE<class_@GlobalScope_constant_PROPERTY_USAGE_SCRIPT_VARIABLE>` 标志,就像和任何显式声明的脚本变量一样。
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
@@ -231,7 +231,7 @@ Allows you to set a custom hint, hint string, and usage flags for the exported p
|
||||
|
||||
**@export_dir**\ (\ ) :ref:`🔗<class_@GDScript_annotation_@export_dir>`
|
||||
|
||||
导出 :ref:`String<class_String>`\ 、\ :ref:`Array<class_Array>`\ \[:ref:`String<class_String>`\ \] 或 :ref:`PackedStringArray<class_PackedStringArray>` 属性,用作指向目录的路径。该路径会被限制在项目文件夹及其子文件夹中。要允许在整个文件系统中选取,见 :ref:`@export_global_dir<class_@GDScript_annotation_@export_global_dir>`\ 。
|
||||
导出 :ref:`String<class_String>`\ 、\ :ref:`Array<class_Array>`\ \[:ref:`String<class_String>`\ \] 或 :ref:`PackedStringArray<class_PackedStringArray>` 属性,用作指向目录的路径。该路径会被限制在项目文件夹及其子文件夹中,要允许在整个文件系统中选取,见 :ref:`@export_global_dir<class_@GDScript_annotation_@export_global_dir>`\ 。
|
||||
|
||||
另见 :ref:`@GlobalScope.PROPERTY_HINT_DIR<class_@GlobalScope_constant_PROPERTY_HINT_DIR>`\ 。
|
||||
|
||||
@@ -790,9 +790,9 @@ Allows you to set a custom hint, hint string, and usage flags for the exported p
|
||||
|
||||
使具有静态变量的脚本在所有引用丢失后不持久化。如果再次加载脚本,静态变量将恢复为默认值。
|
||||
|
||||
\ ** 注意:**\ 当注释描述其主题时,\ :ref:`@static_unload<class_@GDScript_annotation_@static_unload>`\ 注释必须放在类定义和继承之前。
|
||||
\ **注意:**\ 因为注解需要描述对象,所以 :ref:`@static_unload<class_@GDScript_annotation_@static_unload>` 注解必须放在类定义和继承之前。
|
||||
|
||||
\ ** 警告:**\ 目前,由于一个错误,即使使用了\ :ref:`@static_unload<class_@GDScript_annotation_@static_unload>` 注释,脚本也永远不会释放。
|
||||
\ **警告:**\ 目前由于一个 bug,即使使用了\ :ref:`@static_unload<class_@GDScript_annotation_@static_unload>` 注解,脚本也永远不会释放。
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
@@ -804,7 +804,7 @@ Allows you to set a custom hint, hint string, and usage flags for the exported p
|
||||
|
||||
**@tool**\ (\ ) :ref:`🔗<class_@GDScript_annotation_@tool>`
|
||||
|
||||
将当前脚本标记为工具脚本,允许它被编辑器加载和执行。见\ :doc:`《在编辑器中运行代码》 <../tutorials/plugins/running_code_in_the_editor>`\ 。
|
||||
将当前脚本标记为工具脚本,允许该脚本由编辑器所加载与执行。见\ :doc:`《在编辑器中运行代码》 <../tutorials/plugins/running_code_in_the_editor>`\ 。
|
||||
|
||||
::
|
||||
|
||||
@@ -848,7 +848,7 @@ Allows you to set a custom hint, hint string, and usage flags for the exported p
|
||||
|
||||
:ref:`Color<class_Color>` **Color8**\ (\ r8\: :ref:`int<class_int>`, g8\: :ref:`int<class_int>`, b8\: :ref:`int<class_int>`, a8\: :ref:`int<class_int>` = 255\ ) :ref:`🔗<class_@GDScript_method_Color8>`
|
||||
|
||||
返回一个由整数红通道(\ ``r8``\ )、绿通道(\ ``g8``\ )、蓝通道(\ ``b8``\ )和可选的 Alpha 通道(\ ``a8``\ )构造的 :ref:`Color<class_Color>`\ ,每个通道的最终值都会除以 ``255.0``\ 。如果你需要精确匹配 :ref:`Image<class_Image>` 中的颜色值,\ :ref:`Color8<class_@GDScript_method_Color8>` 比标准的 :ref:`Color<class_Color>` 构造函数更有用。
|
||||
返回一个由整数红通道(\ ``r8``\ )、整数绿通道(\ ``g8``\ )、整数蓝通道(\ ``b8``\ )和可选的整数 Alpha 通道(\ ``a8``\ )构造的 :ref:`Color<class_Color>`\ ,每个通道的最终值都会除以 ``255.0``\ 。如果你需要精确匹配 :ref:`Image<class_Image>` 中的颜色值,\ :ref:`Color8<class_@GDScript_method_Color8>` 比标准的 :ref:`Color<class_Color>` 构造函数更有用。
|
||||
|
||||
::
|
||||
|
||||
@@ -856,7 +856,7 @@ Allows you to set a custom hint, hint string, and usage flags for the exported p
|
||||
var dark_blue = Color8(0, 0, 51) # 与 Color(0, 0, 0.2) 相同。
|
||||
var my_color = Color8(306, 255, 0, 102) # 与 Color(1.2, 1, 0, 0.4) 相同。
|
||||
|
||||
\ **注意:**\ 因为 :ref:`Color8<class_@GDScript_method_Color8>` 比标准 :ref:`Color<class_Color>` 构造函数精度更低,所以使用 :ref:`Color8<class_@GDScript_method_Color8>` 创建的颜色通常与使用标准 :ref:`Color<class_Color>` 构造函数创建的相同颜色不相等。请使用 :ref:`Color.is_equal_approx<class_Color_method_is_equal_approx>` 进行比较,避免浮点数精度误差。
|
||||
\ **注意:**\ 由于 :ref:`Color8<class_@GDScript_method_Color8>` 比标准 :ref:`Color<class_Color>` 构造函数精度更低,故使用 :ref:`Color8<class_@GDScript_method_Color8>` 创建的颜色通常与使用标准 :ref:`Color<class_Color>` 构造函数创建的相同颜色不相等。请使用 :ref:`Color.is_equal_approx<class_Color_method_is_equal_approx>` 进行比较,避免浮点数精度误差。
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
@@ -868,11 +868,11 @@ Allows you to set a custom hint, hint string, and usage flags for the exported p
|
||||
|
||||
|void| **assert**\ (\ condition\: :ref:`bool<class_bool>`, message\: :ref:`String<class_String>` = ""\ ) :ref:`🔗<class_@GDScript_method_assert>`
|
||||
|
||||
断言条件 ``condition`` 为 ``true``\ 。如果条件 ``condition`` 为 ``false`` ,则会生成错误。如果是从编辑器运行的,正在运行的项目还会被暂停,直到手动恢复。该函数可以作为 :ref:`@GlobalScope.push_error<class_@GlobalScope_method_push_error>` 的加强版,用于向项目开发者和插件用户报错。
|
||||
断言条件 ``condition`` 为 ``true``\ 。如果条件 ``condition`` 为 ``false`` ,则会生成错误。如果是从编辑器运行的断言,正在运行的项目还会被暂停,需要手动恢复。该函数可以作为 :ref:`@GlobalScope.push_error<class_@GlobalScope_method_push_error>` 的加强版使用,用于向项目开发者和插件用户报错。
|
||||
|
||||
如果给出了可选的 ``message`` 参数,该信息会和通用的“Assertion failed”消息一起显示。你可以使用它来提供关于断言失败原因的其他详细信息。
|
||||
如果给出了可选的 ``message`` 参数,该信息会和通用的“Assertion failed”消息一起显示。你可以使用它来提供关于断言失败原因等详细信息。
|
||||
|
||||
\ **警告:**\ 出于对性能的考虑,\ :ref:`assert<class_@GDScript_method_assert>` 中的代码只会在调试版本或者从编辑器运行项目时执行。请勿在 :ref:`assert<class_@GDScript_method_assert>` 调用中加入具有副作用的代码。否则,项目在以发布模式导出后将有不一致的行为。
|
||||
\ **警告:**\ 出于对性能的考虑,\ :ref:`assert<class_@GDScript_method_assert>` 中的代码只会在调试版本或者从编辑器运行项目时执行。请勿在 :ref:`assert<class_@GDScript_method_assert>` 调用中加入具有副作用的代码。否则,项目在以发布模式导出后将会出现行为不一致的现象。
|
||||
|
||||
::
|
||||
|
||||
@@ -915,7 +915,7 @@ Allows you to set a custom hint, hint string, and usage flags for the exported p
|
||||
|
||||
**已弃用:** Use :ref:`@GlobalScope.type_convert<class_@GlobalScope_method_type_convert>` instead.
|
||||
|
||||
在可能的情况下将 ``what`` 转换为 ``type`` 。 ``type`` 使用 :ref:`Variant.Type<enum_@GlobalScope_Variant.Type>` 值。
|
||||
在可能的情况下将 ``what`` 转换为 ``type`` 类型的值, ``type`` 使用 :ref:`Variant.Type<enum_@GlobalScope_Variant.Type>` 值。
|
||||
|
||||
::
|
||||
|
||||
@@ -936,7 +936,7 @@ Allows you to set a custom hint, hint string, and usage flags for the exported p
|
||||
|
||||
:ref:`Object<class_Object>` **dict_to_inst**\ (\ dictionary\: :ref:`Dictionary<class_Dictionary>`\ ) :ref:`🔗<class_@GDScript_method_dict_to_inst>`
|
||||
|
||||
将一个 ``dictionary`` (用 :ref:`inst_to_dict<class_@GDScript_method_inst_to_dict>` 创建的)转换回为一个 Object 实例。在反序列化时可能很有用。
|
||||
将一个 ``dictionary`` (用 :ref:`inst_to_dict<class_@GDScript_method_inst_to_dict>` 创建的)转换回为一个 Object 实例。在反序列化时可能会很有用。
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
@@ -948,7 +948,7 @@ Allows you to set a custom hint, hint string, and usage flags for the exported p
|
||||
|
||||
:ref:`Array<class_Array>` **get_stack**\ (\ ) :ref:`🔗<class_@GDScript_method_get_stack>`
|
||||
|
||||
返回一个表示当前调用堆栈的字典数组。另请参阅 :ref:`print_stack<class_@GDScript_method_print_stack>`\ 。
|
||||
返回一个表示当前调用堆栈的字典数组,另请参阅 :ref:`print_stack<class_@GDScript_method_print_stack>`\ 。
|
||||
|
||||
::
|
||||
|
||||
@@ -969,7 +969,7 @@ Allows you to set a custom hint, hint string, and usage flags for the exported p
|
||||
|
||||
\ **注意:**\ 只有在运行的实例连接到调试服务器(即编辑器实例)后,该函数才有效。\ :ref:`get_stack<class_@GDScript_method_get_stack>` 不适用于以发布模式导出的项目;或者在未连接到调试服务器的情况下,以调试模式导出的项目。
|
||||
|
||||
\ **注意:**\ 不支持从 :ref:`Thread<class_Thread>` 调用此函数。这样做将返回一个空数组。
|
||||
\ **注意:**\ 不支持从 :ref:`Thread<class_Thread>` 调用此函数,这样做将返回一个空数组。
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
@@ -981,9 +981,9 @@ Allows you to set a custom hint, hint string, and usage flags for the exported p
|
||||
|
||||
:ref:`Dictionary<class_Dictionary>` **inst_to_dict**\ (\ instance\: :ref:`Object<class_Object>`\ ) :ref:`🔗<class_@GDScript_method_inst_to_dict>`
|
||||
|
||||
返回传入的 ``instance`` 转换为的字典。可用于序列化。
|
||||
将传入的 ``instance`` 转换为字典,并将该字典返回,可用于序列化。
|
||||
|
||||
\ **注意:**\ 不能用于序列化附加了内置脚本的对象,或在内置脚本中分配的对象。
|
||||
\ **注意:**\ 不能用于序列化附加了内置脚本的对象,也不能用于序列化在内置脚本中分配的对象。
|
||||
|
||||
::
|
||||
|
||||
@@ -1012,13 +1012,13 @@ Allows you to set a custom hint, hint string, and usage flags for the exported p
|
||||
|
||||
如果 ``value`` 为 ``type`` 类型的实例,则返回 ``true``\ 。\ ``type`` 的值必须为下列值之一:
|
||||
|
||||
- :ref:`Variant.Type<enum_@GlobalScope_Variant.Type>` 枚举常量,例如 :ref:`@GlobalScope.TYPE_INT<class_@GlobalScope_constant_TYPE_INT>`\ 。
|
||||
- :ref:`Variant.Type<enum_@GlobalScope_Variant.Type>` 枚举常量,如 :ref:`@GlobalScope.TYPE_INT<class_@GlobalScope_constant_TYPE_INT>`\ 。
|
||||
|
||||
- :ref:`ClassDB<class_ClassDB>` 中存在的派生自 :ref:`Object<class_Object>` 的类,例如 :ref:`Node<class_Node>`\ 。
|
||||
- :ref:`ClassDB<class_ClassDB>` 中存在的派生自 :ref:`Object<class_Object>` 的类,如 :ref:`Node<class_Node>`\ 。
|
||||
|
||||
- :ref:`Script<class_Script>`\ (可以用任何类,包括内部类)。
|
||||
|
||||
\ ``type`` 可以不是常量,这一点与 ``is`` 的右操作数不同。\ ``is`` 运算符支持的功能更多(例如类型化数组)。如果你不需要动态类型检查,请使用该运算符,不要使用此方法。
|
||||
\ ``type`` 可以不是常量,这一点与 ``is`` 的右操作数不同,\ ``is`` 运算符支持的功能更多(例如类型化数组)。如果你不需要动态类型检查,请使用该运算符,不要使用此方法。
|
||||
|
||||
示例:
|
||||
|
||||
@@ -1029,7 +1029,7 @@ Allows you to set a custom hint, hint string, and usage flags for the exported p
|
||||
print(is_instance_of(a, MyClass))
|
||||
print(is_instance_of(a, MyClass.InnerClass))
|
||||
|
||||
\ **注意:**\ 如果 ``value`` 和/或 ``type`` 为已释放的对象(见 :ref:`@GlobalScope.is_instance_valid<class_@GlobalScope_method_is_instance_valid>`\ ),或者 ``type`` 不是以上选项之一,则此方法会报运行时错误。
|
||||
\ **注意:**\ 如果 ``value`` 和/或 ``type`` 为已释放的对象(见 :ref:`@GlobalScope.is_instance_valid<class_@GlobalScope_method_is_instance_valid>`\ ),或者 ``type`` 的数值不为以上选项中的任何一项,则此方法会报运行时错误。
|
||||
|
||||
另见 :ref:`@GlobalScope.typeof<class_@GlobalScope_method_typeof>`\ 、\ :ref:`type_exists<class_@GDScript_method_type_exists>`\ 、\ :ref:`Array.is_same_typed<class_Array_method_is_same_typed>`\ (以及其他 :ref:`Array<class_Array>` 方法)。
|
||||
|
||||
@@ -1043,7 +1043,7 @@ Allows you to set a custom hint, hint string, and usage flags for the exported p
|
||||
|
||||
:ref:`int<class_int>` **len**\ (\ var\: :ref:`Variant<class_Variant>`\ ) :ref:`🔗<class_@GDScript_method_len>`
|
||||
|
||||
返回给定 Variant ``var`` 的长度。长度可以是 :ref:`String<class_String>` 或 :ref:`StringName<class_StringName>` 的字符数、任意数组类型的元素数或 :ref:`Dictionary<class_Dictionary>` 的大小等。对于所有其他 Variant 类型,都会生成运行时错误并停止执行。
|
||||
返回给定 Variant ``var`` 的长度,该长度可以是 :ref:`String<class_String>` 或 :ref:`StringName<class_StringName>` 的字符数,也可以是任意数组类型的元素数或 :ref:`Dictionary<class_Dictionary>` 的大小等。对于所有其他 Variant 类型,都会生成运行时错误并停止执行。
|
||||
|
||||
::
|
||||
|
||||
@@ -1120,7 +1120,7 @@ Allows you to set a custom hint, hint string, and usage flags for the exported p
|
||||
Test print
|
||||
At: res://test.gd:15:_process()
|
||||
|
||||
\ **注意:**\ 不支持从 :ref:`Thread<class_Thread>` 中调用此方法。调用时会输出线程 ID。
|
||||
\ **注意:**\ 不支持从 :ref:`Thread<class_Thread>` 中调用此方法,这样做会输出线程 ID。
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
@@ -1142,7 +1142,7 @@ Allows you to set a custom hint, hint string, and usage flags for the exported p
|
||||
|
||||
\ **注意:**\ 只有在运行的实例连接到调试服务器(即编辑器实例)后,该函数才有效。\ :ref:`print_stack<class_@GDScript_method_print_stack>` 不适用于以发布模式导出的项目;或者在未连接到调试服务器的情况下,以调试模式导出的项目。
|
||||
|
||||
\ **注意:**\ 不支持从 :ref:`Thread<class_Thread>` 调用此函数。这样做将改为打印线程 ID。
|
||||
\ **注意:**\ 不支持从 :ref:`Thread<class_Thread>` 调用此函数,这样做将改为打印线程 ID。
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
@@ -1224,10 +1224,10 @@ Allows you to set a custom hint, hint string, and usage flags for the exported p
|
||||
type_exists("NonExistentClass") # 返回 false
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
描述
|
||||
----
|
||||
|
||||
全局范围的枚举常量和内置函数的列表。这是所有驻留在全局的,关于错误代码、键码、属性提示等的常量。
|
||||
全局范围的枚举常量和内置函数的列表。这是所有驻留在全局的,关于错误代码、键码、属性提示等的常量的集合。
|
||||
|
||||
单例也被记录在这里,因为它们可以从任何地方被访问。
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
|
||||
.. note::
|
||||
|
||||
通过 C# 使用这个 API 时有显著的不同。详见 :ref:`doc_c_sharp_differences`\ 。
|
||||
通过 C# 使用该 API 时会有显著不同,详见 :ref:`doc_c_sharp_differences`\ 。
|
||||
|
||||
.. rst-class:: classref-introduction-group
|
||||
|
||||
@@ -3878,7 +3878,7 @@ flags **PropertyUsageFlags**: :ref:`🔗<enum_@GlobalScope_PropertyUsageFlags>`
|
||||
|
||||
:ref:`PropertyUsageFlags<enum_@GlobalScope_PropertyUsageFlags>` **PROPERTY_USAGE_STORAGE** = ``2``
|
||||
|
||||
将属性序列化并保存到场景文件中(默认)。
|
||||
The property is serialized and saved in the scene file (default for exported properties).
|
||||
|
||||
.. _class_@GlobalScope_constant_PROPERTY_USAGE_EDITOR:
|
||||
|
||||
@@ -3886,7 +3886,7 @@ flags **PropertyUsageFlags**: :ref:`🔗<enum_@GlobalScope_PropertyUsageFlags>`
|
||||
|
||||
:ref:`PropertyUsageFlags<enum_@GlobalScope_PropertyUsageFlags>` **PROPERTY_USAGE_EDITOR** = ``4``
|
||||
|
||||
该属性将被显示在 :ref:`EditorInspector<class_EditorInspector>`\ (默认)中。
|
||||
The property is shown in the :ref:`EditorInspector<class_EditorInspector>` (default for exported properties).
|
||||
|
||||
.. _class_@GlobalScope_constant_PROPERTY_USAGE_INTERNAL:
|
||||
|
||||
@@ -5303,7 +5303,7 @@ enum **Variant.Operator**: :ref:`🔗<enum_@GlobalScope_Variant.Operator>`
|
||||
|
||||
:ref:`float<class_float>` **acosh**\ (\ x\: :ref:`float<class_float>`\ ) :ref:`🔗<class_@GlobalScope_method_acosh>`
|
||||
|
||||
返回参数 x 的双曲弧(也称为反余弦),返回弧度值。使用它来获取在双曲空间中,如果参数 x 大于或等于 1 ,角的余弦的角度。对于参数 x 小于 1 的值,将返回 0 ,以防止 :ref:`acosh<class_@GlobalScope_method_acosh>` 返回 :ref:`@GDScript.NAN<class_@GDScript_constant_NAN>` 。
|
||||
返回 ``x`` 的反双曲余弦值,返回值为弧度。使用它来获取在双曲空间中,如果 ``x`` 大于或等于 1,角的余弦的角度。对于 ``x`` 小于 1 的值,将返回 0,以防止 :ref:`acosh<class_@GlobalScope_method_acosh>` 返回 :ref:`@GDScript.NAN<class_@GDScript_constant_NAN>`\ 。
|
||||
|
||||
::
|
||||
|
||||
@@ -5351,7 +5351,7 @@ enum **Variant.Operator**: :ref:`🔗<enum_@GlobalScope_Variant.Operator>`
|
||||
|
||||
:ref:`float<class_float>` **asinh**\ (\ x\: :ref:`float<class_float>`\ ) :ref:`🔗<class_@GlobalScope_method_asinh>`
|
||||
|
||||
返回参数 x 的双曲弧(也称为反正弦),返回弧度值。使用它来获取在双曲空间中,角的正弦角度。
|
||||
返回 ``x`` 的反双曲正弦值,返回值为弧度。使用它来获取在双曲空间中,角的正弦角度。
|
||||
|
||||
::
|
||||
|
||||
@@ -5368,7 +5368,7 @@ enum **Variant.Operator**: :ref:`🔗<enum_@GlobalScope_Variant.Operator>`
|
||||
|
||||
:ref:`float<class_float>` **atan**\ (\ x\: :ref:`float<class_float>`\ ) :ref:`🔗<class_@GlobalScope_method_atan>`
|
||||
|
||||
返回 ``x`` 的反正切值,单位是弧度。在三角函数中用它来得到一个角上切线的角度。
|
||||
返回 ``x`` 的反正切值,单位为弧度。在三角函数中用它来得到一个角上切线的角度。
|
||||
|
||||
该方法无法确定角度应该落在哪个象限。如果你同时拥有 ``y`` 和 ``x``\ ,请参见 :ref:`atan2<class_@GlobalScope_method_atan2>`\ 。
|
||||
|
||||
@@ -5406,9 +5406,9 @@ enum **Variant.Operator**: :ref:`🔗<enum_@GlobalScope_Variant.Operator>`
|
||||
|
||||
:ref:`float<class_float>` **atanh**\ (\ x\: :ref:`float<class_float>`\ ) :ref:`🔗<class_@GlobalScope_method_atanh>`
|
||||
|
||||
返回 ``x`` 的双曲弧(也称为反正切),以弧度为单位。如果 ``x`` 在 -1 和 1 之间(不包括 -1 和 1 ),则使用它从双曲空间中的角度的正切值获取角度。
|
||||
返回 ``x`` 的反双曲正切值,返回值为弧度。如果 ``x`` 在 -1 和 1 之间(不包括 -1 和 1),则使用它从双曲空间中的角度的正切值获取角度。
|
||||
|
||||
在数学中,只有在实数集中,-1 < ``x`` < 1 的情况下,双曲反正切才有意义。因此,为了预防 :ref:`atanh<class_@GlobalScope_method_atanh>` 返回 :ref:`@GDScript.NAN<class_@GDScript_constant_NAN>` ,对于 ``x`` 等于或小于 -1 的值,返回负的 :ref:`@GDScript.NAN<class_@GDScript_constant_NAN>` ;对于\ ``x``\ 等于或大于 1 的值,返回正的 :ref:`@GDScript.INF<class_@GDScript_constant_INF>` 。
|
||||
在数学中,只有在实数集中,-1 < ``x`` < 1 的情况下,双曲反正切才有意义。因此,为了预防 :ref:`atanh<class_@GlobalScope_method_atanh>` 返回 :ref:`@GDScript.NAN<class_@GDScript_constant_NAN>`\ ,对于 ``x`` 等于或小于 -1 的值,返回负的 :ref:`@GDScript.NAN<class_@GDScript_constant_NAN>`\ ;对于 ``x``\ 等于或大于 1 的值,返回正的 :ref:`@GDScript.INF<class_@GDScript_constant_INF>`\ 。
|
||||
|
||||
::
|
||||
|
||||
@@ -5679,7 +5679,7 @@ enum **Variant.Operator**: :ref:`🔗<enum_@GlobalScope_Variant.Operator>`
|
||||
|
||||
:ref:`float<class_float>` **db_to_linear**\ (\ db\: :ref:`float<class_float>`\ ) :ref:`🔗<class_@GlobalScope_method_db_to_linear>`
|
||||
|
||||
从分贝转换为线性能量(音频)。
|
||||
将分贝值转换为线性能量(音频)值。
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
@@ -5707,7 +5707,7 @@ enum **Variant.Operator**: :ref:`🔗<enum_@GlobalScope_Variant.Operator>`
|
||||
|
||||
:ref:`float<class_float>` **ease**\ (\ x\: :ref:`float<class_float>`, curve\: :ref:`float<class_float>`\ ) :ref:`🔗<class_@GlobalScope_method_ease>`
|
||||
|
||||
基于用 ``curve`` 定义的缓动函数返回 ``x`` 的“缓动后”的值。该缓动函数是基于指数的。\ ``curve`` 可以是任意浮点数,具体数值会导致以下行为:
|
||||
基于用 ``curve`` 定义的缓动函数返回 ``x`` “缓动后”的值,该缓动函数是基于指数的缓动。\ ``curve`` 可以是任意浮点数,具体数值会导致以下行为:
|
||||
|
||||
.. code:: text
|
||||
|
||||
@@ -6831,15 +6831,15 @@ URL 标签仅支持在 URL 标签中包含 URL,不支持使用不同标题的
|
||||
|
||||
:ref:`float<class_float>` **remap**\ (\ value\: :ref:`float<class_float>`, istart\: :ref:`float<class_float>`, istop\: :ref:`float<class_float>`, ostart\: :ref:`float<class_float>`, ostop\: :ref:`float<class_float>`\ ) :ref:`🔗<class_@GlobalScope_method_remap>`
|
||||
|
||||
Maps a ``value`` from range ``[istart, istop]`` to ``[ostart, ostop]``. See also :ref:`lerp<class_@GlobalScope_method_lerp>` and :ref:`inverse_lerp<class_@GlobalScope_method_inverse_lerp>`. If ``value`` is outside ``[istart, istop]``, then the resulting value will also be outside ``[ostart, ostop]``. If this is not desired, use :ref:`clamp<class_@GlobalScope_method_clamp>` on the result of this function.
|
||||
将 ``value`` 从范围 ``[istart, istop]`` 映射到 ``[ostart, ostop]``\ 。另见 :ref:`lerp<class_@GlobalScope_method_lerp>` 和 :ref:`inverse_lerp<class_@GlobalScope_method_inverse_lerp>`\ 。如果 ``value`` 在 ``[istart, istop]`` 之外,那么结果值也将在 ``[ostart, ostop]`` 之外。如果不希望这样,请对该函数的结果使用 :ref:`clamp<class_@GlobalScope_method_clamp>`\ 。
|
||||
|
||||
::
|
||||
|
||||
remap(75, 0, 100, -1, 1) # Returns 0.5
|
||||
remap(75, 0, 100, -1, 1) # 返回 0.5
|
||||
|
||||
For complex use cases where multiple ranges are needed, consider using :ref:`Curve<class_Curve>` or :ref:`Gradient<class_Gradient>` instead.
|
||||
对于需要多个范围的复杂用例,请考虑改用 :ref:`Curve<class_Curve>` 或 :ref:`Gradient<class_Gradient>`\ 。
|
||||
|
||||
\ **Note:** If ``istart == istop``, the return value is undefined (most likely NaN, INF, or -INF).
|
||||
\ **注意:**\ 如果 ``istart == istop``\ ,则返回值未定义(很可能是 NaN、INF 或 -INF)。
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
@@ -7500,10 +7500,10 @@ For complex use cases where multiple ranges are needed, consider using :ref:`Cur
|
||||
var result = wrapi(-6, -5, -1)
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -27,7 +27,7 @@ AABB
|
||||
|
||||
.. note::
|
||||
|
||||
通过 C# 使用这个 API 时有显著的不同。详见 :ref:`doc_c_sharp_differences`\ 。
|
||||
通过 C# 使用该 API 时会有显著不同,详见 :ref:`doc_c_sharp_differences`\ 。
|
||||
|
||||
.. rst-class:: classref-introduction-group
|
||||
|
||||
@@ -134,7 +134,7 @@ AABB
|
||||
|
||||
.. rst-class:: classref-reftable-group
|
||||
|
||||
操作符
|
||||
运算符
|
||||
------
|
||||
|
||||
.. table::
|
||||
@@ -441,7 +441,7 @@ AABB
|
||||
|
||||
:ref:`Vector3<class_Vector3>` **get_shortest_axis**\ (\ ) |const| :ref:`🔗<class_AABB_method_get_shortest_axis>`
|
||||
|
||||
返回该边界框的 :ref:`size<class_AABB_property_size>` 的最短归一化轴,作为 :ref:`Vector3<class_Vector3>`\ (\ :ref:`Vector3.RIGHT<class_Vector3_constant_RIGHT>`\ 、\ :ref:`Vector3.UP<class_Vector3_constant_UP>` 或 :ref:`Vector3.BACK<class_Vector3_constant_BACK>`\ )。
|
||||
Returns the shortest normalized axis of this bounding box's :ref:`size<class_AABB_property_size>`, as a :ref:`Vector3<class_Vector3>` (:ref:`Vector3.RIGHT<class_Vector3_constant_RIGHT>`, :ref:`Vector3.UP<class_Vector3_constant_UP>`, or :ref:`Vector3.BACK<class_Vector3_constant_BACK>`).
|
||||
|
||||
|
||||
.. tabs::
|
||||
@@ -450,21 +450,21 @@ AABB
|
||||
|
||||
var box = AABB(Vector3(0, 0, 0), Vector3(2, 4, 8))
|
||||
|
||||
print(box.get_shortest_axis()) # 打印 (1, 0, 0)
|
||||
print(box.get_shortest_axis_index()) # 打印 0
|
||||
print(box.get_shortest_axis_size()) # 打印 2
|
||||
print(box.get_shortest_axis()) # Prints (1, 0, 0)
|
||||
print(box.get_shortest_axis_index()) # Prints 0
|
||||
print(box.get_shortest_axis_size()) # Prints 2
|
||||
|
||||
.. code-tab:: csharp
|
||||
|
||||
var box = new Aabb(new Vector3(0, 0, 0), new Vector3(2, 4, 8));
|
||||
|
||||
GD.Print(box.GetShortestAxis()); // 打印 (1, 0, 0)
|
||||
GD.Print(box.GetShortestAxisIndex()); // 打印 0
|
||||
GD.Print(box.GetShortestAxisSize()); // 打印 2
|
||||
GD.Print(box.GetShortestAxis()); // Prints (1, 0, 0)
|
||||
GD.Print(box.GetShortestAxisIndex()); // Prints 0
|
||||
GD.Print(box.GetShortestAxisSize()); // Prints 2
|
||||
|
||||
|
||||
|
||||
另见 :ref:`get_shortest_axis_index<class_AABB_method_get_shortest_axis_index>` 和 :ref:`get_shortest_axis_size<class_AABB_method_get_shortest_axis_size>`\ 。
|
||||
See also :ref:`get_shortest_axis_index<class_AABB_method_get_shortest_axis_index>` and :ref:`get_shortest_axis_size<class_AABB_method_get_shortest_axis_size>`.
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
@@ -724,7 +724,7 @@ AABB
|
||||
|
||||
.. rst-class:: classref-descriptions-group
|
||||
|
||||
操作符说明
|
||||
运算符说明
|
||||
----------
|
||||
|
||||
.. _class_AABB_operator_neq_AABB:
|
||||
@@ -768,10 +768,10 @@ AABB
|
||||
\ **注意:**\ 由于浮点数精度误差,请考虑改用 :ref:`is_equal_approx<class_AABB_method_is_equal_approx>`\ ,会更可靠。
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -369,10 +369,10 @@ AcceptDialog
|
||||
填充窗口背景的面板。
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -227,10 +227,10 @@ AES 密码封锁器链式解密模式。
|
||||
\ **注意:**\ ``src`` 的大小必须是 16 倍的倍数。如果需要,应用一些填充。
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -58,10 +58,10 @@ AnimatableBody2D
|
||||
如果为 ``true``\ ,则物体的运动将与物理帧同步。当通过 :ref:`AnimationPlayer<class_AnimationPlayer>` 为运动设置动画时,例如在移动的平台上,这个功能很有用。\ **不要**\ 与\ :ref:`PhysicsBody2D.move_and_collide<class_PhysicsBody2D_method_move_and_collide>`\ 一起使用。
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -69,10 +69,10 @@ AnimatableBody3D
|
||||
如果为 ``true``\ ,则实体的运动将与物理帧同步。当通过 :ref:`AnimationPlayer<class_AnimationPlayer>` 为运动设置动画时,例如在移动的平台上,这个功能很有用。请\ **不要**\ 与 :ref:`PhysicsBody3D.move_and_collide<class_PhysicsBody3D_method_move_and_collide>` 函数一起使用。
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -445,10 +445,10 @@ AnimatedSprite2D
|
||||
停止当前正在播放的动画。会将动画的位置重置为 ``0``\ ,并将 ``custom_speed`` 重置为 ``1.0``\ 。另见 :ref:`pause<class_AnimatedSprite2D_method_pause>`\ 。
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -365,10 +365,10 @@ AnimatedSprite3D
|
||||
停止当前正在播放的动画。会将动画的位置重置为 ``0``\ ,并将 ``custom_speed`` 重置为 ``1.0``\ 。另见 :ref:`pause<class_AnimatedSprite3D_method_pause>`\ 。
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -234,10 +234,10 @@ AnimatedTexture
|
||||
最多可以定义 :ref:`MAX_FRAMES<class_AnimatedTexture_constant_MAX_FRAMES>` 个纹理,但要记住,只有 0 到 :ref:`frames<class_AnimatedTexture_property_frames>` - 1 的帧会成为动画的一部分。
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -480,7 +480,7 @@ enum **FindMode**: :ref:`🔗<enum_Animation_FindMode>`
|
||||
|
||||
:ref:`FindMode<enum_Animation_FindMode>` **FIND_MODE_NEAREST** = ``0``
|
||||
|
||||
查找最近的时间键。
|
||||
查找与时间最接近的关键帧。
|
||||
|
||||
.. _class_Animation_constant_FIND_MODE_APPROX:
|
||||
|
||||
@@ -488,7 +488,7 @@ enum **FindMode**: :ref:`🔗<enum_Animation_FindMode>`
|
||||
|
||||
:ref:`FindMode<enum_Animation_FindMode>` **FIND_MODE_APPROX** = ``1``
|
||||
|
||||
仅查找与时间相近的键。
|
||||
仅查找与时间近似的关键帧。
|
||||
|
||||
.. _class_Animation_constant_FIND_MODE_EXACT:
|
||||
|
||||
@@ -496,7 +496,7 @@ enum **FindMode**: :ref:`🔗<enum_Animation_FindMode>`
|
||||
|
||||
:ref:`FindMode<enum_Animation_FindMode>` **FIND_MODE_EXACT** = ``2``
|
||||
|
||||
仅查找与时间匹配的键。
|
||||
仅查找与时间一致的关键帧。
|
||||
|
||||
.. rst-class:: classref-section-separator
|
||||
|
||||
@@ -749,7 +749,7 @@ enum **FindMode**: :ref:`🔗<enum_Animation_FindMode>`
|
||||
|
||||
:ref:`Vector2<class_Vector2>` **bezier_track_get_key_in_handle**\ (\ track_idx\: :ref:`int<class_int>`, key_idx\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_Animation_method_bezier_track_get_key_in_handle>`
|
||||
|
||||
返回由 ``key_idx`` 识别的键的入点手柄,\ ``track_idx`` 必须是贝赛尔曲线轨道的索引。
|
||||
返回由 ``key_idx`` 识别的关键帧的入点句柄,\ ``track_idx`` 必须是贝赛尔曲线轨道的索引。
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
@@ -761,7 +761,7 @@ enum **FindMode**: :ref:`🔗<enum_Animation_FindMode>`
|
||||
|
||||
:ref:`Vector2<class_Vector2>` **bezier_track_get_key_out_handle**\ (\ track_idx\: :ref:`int<class_int>`, key_idx\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_Animation_method_bezier_track_get_key_out_handle>`
|
||||
|
||||
返回由 ``key_idx`` 识别的键的出点手柄,\ ``track_idx`` 必须是贝赛尔曲线轨道的索引。
|
||||
返回由 ``key_idx`` 识别的关键帧的出点句柄,\ ``track_idx`` 必须是贝赛尔曲线轨道的索引。
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
@@ -785,7 +785,7 @@ enum **FindMode**: :ref:`🔗<enum_Animation_FindMode>`
|
||||
|
||||
:ref:`int<class_int>` **bezier_track_insert_key**\ (\ track_idx\: :ref:`int<class_int>`, time\: :ref:`float<class_float>`, value\: :ref:`float<class_float>`, in_handle\: :ref:`Vector2<class_Vector2>` = Vector2(0, 0), out_handle\: :ref:`Vector2<class_Vector2>` = Vector2(0, 0)\ ) :ref:`🔗<class_Animation_method_bezier_track_insert_key>`
|
||||
|
||||
在给定的时间 ``time`` 秒处插入贝塞尔轨道键。\ ``track_idx`` 必须是贝塞尔轨道的索引。
|
||||
在给定的时间 ``time`` 秒处插入贝塞尔轨道关键帧。\ ``track_idx`` 必须是贝塞尔轨道的索引。
|
||||
|
||||
\ ``in_handle`` 是添加的贝塞尔曲线点的左侧权重,\ ``out_handle`` 是右侧权重,而 ``value`` 是这个点的实际值。
|
||||
|
||||
@@ -811,7 +811,7 @@ enum **FindMode**: :ref:`🔗<enum_Animation_FindMode>`
|
||||
|
||||
|void| **bezier_track_set_key_in_handle**\ (\ track_idx\: :ref:`int<class_int>`, key_idx\: :ref:`int<class_int>`, in_handle\: :ref:`Vector2<class_Vector2>`, balanced_value_time_ratio\: :ref:`float<class_float>` = 1.0\ ) :ref:`🔗<class_Animation_method_bezier_track_set_key_in_handle>`
|
||||
|
||||
将 ``key_idx`` 所标识的键的入点手柄设置为 ``in_handle`` 值。\ ``track_idx`` 必须是贝塞尔轨道的索引。
|
||||
将 ``key_idx`` 所标识的关键帧的入点句柄设置为 ``in_handle`` 值。\ ``track_idx`` 必须是贝塞尔轨道的索引。
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
@@ -823,7 +823,7 @@ enum **FindMode**: :ref:`🔗<enum_Animation_FindMode>`
|
||||
|
||||
|void| **bezier_track_set_key_out_handle**\ (\ track_idx\: :ref:`int<class_int>`, key_idx\: :ref:`int<class_int>`, out_handle\: :ref:`Vector2<class_Vector2>`, balanced_value_time_ratio\: :ref:`float<class_float>` = 1.0\ ) :ref:`🔗<class_Animation_method_bezier_track_set_key_out_handle>`
|
||||
|
||||
将由 ``key_idx`` 确定的关键帧的出点手柄设置为 ``out_handle``\ 。参数 ``track_idx`` 必须是贝塞尔轨道的索引。
|
||||
将由 ``key_idx`` 确定的关键帧的出点句柄设置为 ``out_handle``\ 。参数 ``track_idx`` 必须是贝塞尔轨道的索引。
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
@@ -1041,13 +1041,13 @@ enum **FindMode**: :ref:`🔗<enum_Animation_FindMode>`
|
||||
|
||||
:ref:`int<class_int>` **track_find_key**\ (\ track_idx\: :ref:`int<class_int>`, time\: :ref:`float<class_float>`, find_mode\: :ref:`FindMode<enum_Animation_FindMode>` = 0, limit\: :ref:`bool<class_bool>` = false, backward\: :ref:`bool<class_bool>` = false\ ) |const| :ref:`🔗<class_Animation_method_track_find_key>`
|
||||
|
||||
Finds the key index by time in a given track. Optionally, only find it if the approx/exact time is given.
|
||||
根据时间查找给定轨道中的关键帧索引号。查找时可以要求与给定时间近似/一致。
|
||||
|
||||
If ``limit`` is ``true``, it does not return keys outside the animation range.
|
||||
如果 ``limit`` 为 ``true``\ ,则不会返回动画范围外的关键帧。
|
||||
|
||||
If ``backward`` is ``true``, the direction is reversed in methods that rely on one directional processing.
|
||||
如果 ``backward`` 为 ``true``\ ,则会按照反方向执行需要单向处理的方法。
|
||||
|
||||
For example, in case ``find_mode`` is :ref:`FIND_MODE_NEAREST<class_Animation_constant_FIND_MODE_NEAREST>`, if there is no key in the current position just after seeked, the first key found is retrieved by searching before the position, but if ``backward`` is ``true``, the first key found is retrieved after the position.
|
||||
例如 ``find_mode`` 为 :ref:`FIND_MODE_NEAREST<class_Animation_constant_FIND_MODE_NEAREST>` 时,如果查找的位置不存在关键帧,那么就会查找并返回该位置之前的第一个关键帧,而如果 ``backward`` 为 ``true``\ ,则会返回该位置之后的第一个关键帧。
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
@@ -1347,9 +1347,9 @@ For example, in case ``find_mode`` is :ref:`FIND_MODE_NEAREST<class_Animation_co
|
||||
|
||||
|void| **track_set_path**\ (\ track_idx\: :ref:`int<class_int>`, path\: :ref:`NodePath<class_NodePath>`\ ) :ref:`🔗<class_Animation_method_track_set_path>`
|
||||
|
||||
设置轨道的路径。路径必须是指向场景树节点的有效路径,必须从将要实现动画的节点的父节点开始指定。控制属性或骨骼的轨道必须在路径后面加上它们的名字,用 ``":"`` 分隔。
|
||||
Sets the path of a track. Paths must be valid scene-tree paths to a node and must be specified starting from the :ref:`AnimationMixer.root_node<class_AnimationMixer_property_root_node>` that will reproduce the animation. Tracks that control properties or bones must append their name after the path, separated by ``":"``.
|
||||
|
||||
例如,\ ``"character/skeleton:ankle"`` 或 ``"character/mesh:transform/local"``\ 。
|
||||
For example, ``"character/skeleton:ankle"`` or ``"character/mesh:transform/local"``.
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
@@ -1385,9 +1385,9 @@ For example, in case ``find_mode`` is :ref:`FIND_MODE_NEAREST<class_Animation_co
|
||||
|
||||
:ref:`Variant<class_Variant>` **value_track_interpolate**\ (\ track_idx\: :ref:`int<class_int>`, time_sec\: :ref:`float<class_float>`, backward\: :ref:`bool<class_bool>` = false\ ) |const| :ref:`🔗<class_Animation_method_value_track_interpolate>`
|
||||
|
||||
Returns the interpolated value at the given time (in seconds). The ``track_idx`` must be the index of a value track.
|
||||
返回在给定时间点(单位为秒)插值后的值。\ ``track_idx`` 必须是值轨道的索引号。
|
||||
|
||||
A ``backward`` mainly affects the direction of key retrieval of the track with :ref:`UPDATE_DISCRETE<class_Animation_constant_UPDATE_DISCRETE>` converted by :ref:`AnimationMixer.ANIMATION_CALLBACK_MODE_DISCRETE_FORCE_CONTINUOUS<class_AnimationMixer_constant_ANIMATION_CALLBACK_MODE_DISCRETE_FORCE_CONTINUOUS>` to match the result with :ref:`track_find_key<class_Animation_method_track_find_key>`.
|
||||
\ ``backward`` 影响的主要是从轨道获取关键帧的方向,与 :ref:`track_find_key<class_Animation_method_track_find_key>` 的结果一致,此处的轨道指根据 :ref:`AnimationMixer.ANIMATION_CALLBACK_MODE_DISCRETE_FORCE_CONTINUOUS<class_AnimationMixer_constant_ANIMATION_CALLBACK_MODE_DISCRETE_FORCE_CONTINUOUS>` 转换的 :ref:`UPDATE_DISCRETE<class_Animation_constant_UPDATE_DISCRETE>` 轨道。
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
@@ -1402,10 +1402,10 @@ A ``backward`` mainly affects the direction of key retrieval of the track with :
|
||||
设置值轨道的更新模式(请参阅 :ref:`UpdateMode<enum_Animation_UpdateMode>`\ )。
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -183,10 +183,10 @@ AnimationLibrary
|
||||
将与键 ``name`` 关联的 :ref:`Animation<class_Animation>` 的键更改为 ``newname``\ 。
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -277,7 +277,7 @@ enum **AnimationCallbackModeDiscrete**: :ref:`🔗<enum_AnimationMixer_Animation
|
||||
|
||||
:ref:`AnimationCallbackModeDiscrete<enum_AnimationMixer_AnimationCallbackModeDiscrete>` **ANIMATION_CALLBACK_MODE_DISCRETE_DOMINANT** = ``0``
|
||||
|
||||
An :ref:`Animation.UPDATE_DISCRETE<class_Animation_constant_UPDATE_DISCRETE>` track value takes precedence when blending :ref:`Animation.UPDATE_CONTINUOUS<class_Animation_constant_UPDATE_CONTINUOUS>` or :ref:`Animation.UPDATE_CAPTURE<class_Animation_constant_UPDATE_CAPTURE>` track values and :ref:`Animation.UPDATE_DISCRETE<class_Animation_constant_UPDATE_DISCRETE>` track values.
|
||||
将 :ref:`Animation.UPDATE_CONTINUOUS<class_Animation_constant_UPDATE_CONTINUOUS>` 或 :ref:`Animation.UPDATE_CAPTURE<class_Animation_constant_UPDATE_CAPTURE>` 轨道值与 :ref:`Animation.UPDATE_DISCRETE<class_Animation_constant_UPDATE_DISCRETE>` 轨道值混合时,\ :ref:`Animation.UPDATE_DISCRETE<class_Animation_constant_UPDATE_DISCRETE>` 轨道值优先。
|
||||
|
||||
.. _class_AnimationMixer_constant_ANIMATION_CALLBACK_MODE_DISCRETE_RECESSIVE:
|
||||
|
||||
@@ -285,7 +285,7 @@ An :ref:`Animation.UPDATE_DISCRETE<class_Animation_constant_UPDATE_DISCRETE>` tr
|
||||
|
||||
:ref:`AnimationCallbackModeDiscrete<enum_AnimationMixer_AnimationCallbackModeDiscrete>` **ANIMATION_CALLBACK_MODE_DISCRETE_RECESSIVE** = ``1``
|
||||
|
||||
An :ref:`Animation.UPDATE_CONTINUOUS<class_Animation_constant_UPDATE_CONTINUOUS>` or :ref:`Animation.UPDATE_CAPTURE<class_Animation_constant_UPDATE_CAPTURE>` track value takes precedence when blending the :ref:`Animation.UPDATE_CONTINUOUS<class_Animation_constant_UPDATE_CONTINUOUS>` or :ref:`Animation.UPDATE_CAPTURE<class_Animation_constant_UPDATE_CAPTURE>` track values and the :ref:`Animation.UPDATE_DISCRETE<class_Animation_constant_UPDATE_DISCRETE>` track values. This is the default behavior for :ref:`AnimationPlayer<class_AnimationPlayer>`.
|
||||
将 :ref:`Animation.UPDATE_CONTINUOUS<class_Animation_constant_UPDATE_CONTINUOUS>` 或 :ref:`Animation.UPDATE_CAPTURE<class_Animation_constant_UPDATE_CAPTURE>` 轨道值与 :ref:`Animation.UPDATE_DISCRETE<class_Animation_constant_UPDATE_DISCRETE>` 轨道值混合时,\ :ref:`Animation.UPDATE_CONTINUOUS<class_Animation_constant_UPDATE_CONTINUOUS>` 或 :ref:`Animation.UPDATE_CAPTURE<class_Animation_constant_UPDATE_CAPTURE>` 轨道值优先。这是 :ref:`AnimationPlayer<class_AnimationPlayer>` 的默认行为。
|
||||
|
||||
.. _class_AnimationMixer_constant_ANIMATION_CALLBACK_MODE_DISCRETE_FORCE_CONTINUOUS:
|
||||
|
||||
@@ -293,9 +293,9 @@ An :ref:`Animation.UPDATE_CONTINUOUS<class_Animation_constant_UPDATE_CONTINUOUS>
|
||||
|
||||
:ref:`AnimationCallbackModeDiscrete<enum_AnimationMixer_AnimationCallbackModeDiscrete>` **ANIMATION_CALLBACK_MODE_DISCRETE_FORCE_CONTINUOUS** = ``2``
|
||||
|
||||
Always treat the :ref:`Animation.UPDATE_DISCRETE<class_Animation_constant_UPDATE_DISCRETE>` track value as :ref:`Animation.UPDATE_CONTINUOUS<class_Animation_constant_UPDATE_CONTINUOUS>` with :ref:`Animation.INTERPOLATION_NEAREST<class_Animation_constant_INTERPOLATION_NEAREST>`. This is the default behavior for :ref:`AnimationTree<class_AnimationTree>`.
|
||||
在和 :ref:`Animation.INTERPOLATION_NEAREST<class_Animation_constant_INTERPOLATION_NEAREST>` 混合时,始终将 :ref:`Animation.UPDATE_DISCRETE<class_Animation_constant_UPDATE_DISCRETE>` 轨道值视为 :ref:`Animation.UPDATE_CONTINUOUS<class_Animation_constant_UPDATE_CONTINUOUS>`\ 。这是 :ref:`AnimationTree<class_AnimationTree>` 的默认行为。
|
||||
|
||||
If a value track has non-numeric type key values, it is internally converted to use :ref:`ANIMATION_CALLBACK_MODE_DISCRETE_RECESSIVE<class_AnimationMixer_constant_ANIMATION_CALLBACK_MODE_DISCRETE_RECESSIVE>` with :ref:`Animation.UPDATE_DISCRETE<class_Animation_constant_UPDATE_DISCRETE>`.
|
||||
如果值轨道具有非数字类型键值,则在和 :ref:`Animation.UPDATE_DISCRETE<class_Animation_constant_UPDATE_DISCRETE>` 混合时,会在内部转换为使用 :ref:`ANIMATION_CALLBACK_MODE_DISCRETE_RECESSIVE<class_AnimationMixer_constant_ANIMATION_CALLBACK_MODE_DISCRETE_RECESSIVE>`\ 。
|
||||
|
||||
.. rst-class:: classref-section-separator
|
||||
|
||||
@@ -416,7 +416,7 @@ If a value track has non-numeric type key values, it is internally converted to
|
||||
|
||||
如果为 ``false``\ ,则混合不会使用确定性算法。总权重将归一化且始终为 ``1.0``\ 。如果混合动画之间的轨道数量不同,则不会对缺少轨道的动画执行任何操作。
|
||||
|
||||
\ ** 注意:** 在 :ref:`AnimationTree<class_AnimationTree>` 中,与 :ref:`AnimationNodeAdd2<class_AnimationNodeAdd2>` 、 :ref:`AnimationNodeAdd3<class_AnimationNodeAdd3>` 、 :ref:`AnimationNodeSub2<class_AnimationNodeSub2>` 或权重大于 ``1.0`` 混合可能产生意想不到的结果。
|
||||
\ **注意:**\ 在 :ref:`AnimationTree<class_AnimationTree>` 中,与 :ref:`AnimationNodeAdd2<class_AnimationNodeAdd2>` 、 :ref:`AnimationNodeAdd3<class_AnimationNodeAdd3>` 、 :ref:`AnimationNodeSub2<class_AnimationNodeSub2>` 或权重大于 ``1.0`` 混合可能产生意想不到的结果。
|
||||
|
||||
例如,如果 :ref:`AnimationNodeAdd2<class_AnimationNodeAdd2>` 混合了两个取值为 ``1.0`` 的节点,则总权重为 ``2.0``\ ,但它将被归一化使总权重保持 ``1.0``\ ,且结果将等于取值为 ``0.5`` 的 :ref:`AnimationNodeBlend2<class_AnimationNodeBlend2>`\ 。
|
||||
|
||||
@@ -454,9 +454,9 @@ If a value track has non-numeric type key values, it is internally converted to
|
||||
- |void| **set_root_motion_track**\ (\ value\: :ref:`NodePath<class_NodePath>`\ )
|
||||
- :ref:`NodePath<class_NodePath>` **get_root_motion_track**\ (\ )
|
||||
|
||||
用于根部运动的动画轨道的路径。路径必须是指向节点的场景树有效路径,必须从将实现动画的节点的父节点开始指定。要指定控件属性或骨骼的轨道,请在路径后附加其名称,用 ``":"`` 隔开。例如,\ ``"character/skeleton:ankle"`` 或 ``"character/mesh:transform/local"``\ 。
|
||||
The path to the Animation track used for root motion. Paths must be valid scene-tree paths to a node, and must be specified starting from the parent node of the node that will reproduce the animation. The :ref:`root_motion_track<class_AnimationMixer_property_root_motion_track>` uses the same format as :ref:`Animation.track_set_path<class_Animation_method_track_set_path>`, but note that a bone must be specified.
|
||||
|
||||
如果轨道的类型是 :ref:`Animation.TYPE_POSITION_3D<class_Animation_constant_TYPE_POSITION_3D>`\ 、\ :ref:`Animation.TYPE_ROTATION_3D<class_Animation_constant_TYPE_ROTATION_3D>`\ 、或者 :ref:`Animation.TYPE_SCALE_3D<class_Animation_constant_TYPE_SCALE_3D>`\ ,那么将取消视觉上的变换,其动画看起来将是留在原地。另见 :ref:`get_root_motion_position<class_AnimationMixer_method_get_root_motion_position>`\ 、\ :ref:`get_root_motion_rotation<class_AnimationMixer_method_get_root_motion_rotation>`\ 、\ :ref:`get_root_motion_scale<class_AnimationMixer_method_get_root_motion_scale>`\ 、\ :ref:`RootMotionView<class_RootMotionView>`\ 。
|
||||
If the track has type :ref:`Animation.TYPE_POSITION_3D<class_Animation_constant_TYPE_POSITION_3D>`, :ref:`Animation.TYPE_ROTATION_3D<class_Animation_constant_TYPE_ROTATION_3D>`, or :ref:`Animation.TYPE_SCALE_3D<class_Animation_constant_TYPE_SCALE_3D>` the transformation will be canceled visually, and the animation will appear to stay in place. See also :ref:`get_root_motion_position<class_AnimationMixer_method_get_root_motion_position>`, :ref:`get_root_motion_rotation<class_AnimationMixer_method_get_root_motion_rotation>`, :ref:`get_root_motion_scale<class_AnimationMixer_method_get_root_motion_scale>`, and :ref:`RootMotionView<class_RootMotionView>`.
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
@@ -502,7 +502,19 @@ If a value track has non-numeric type key values, it is internally converted to
|
||||
|
||||
:ref:`Error<enum_@GlobalScope_Error>` **add_animation_library**\ (\ name\: :ref:`StringName<class_StringName>`, library\: :ref:`AnimationLibrary<class_AnimationLibrary>`\ ) :ref:`🔗<class_AnimationMixer_method_add_animation_library>`
|
||||
|
||||
将 ``library`` 添加到该动画播放器的键 ``name`` 下。
|
||||
Adds ``library`` to the animation player, under the key ``name``.
|
||||
|
||||
AnimationMixer has a global library by default with an empty string as key. For adding an animation to the global library:
|
||||
|
||||
|
||||
.. tabs::
|
||||
|
||||
.. code-tab:: gdscript
|
||||
|
||||
var global_library = mixer.get_animation_library("")
|
||||
global_library.add_animation("animation_name", animation_resource)
|
||||
|
||||
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
@@ -745,13 +757,13 @@ If a value track has non-numeric type key values, it is internally converted to
|
||||
|
||||
:ref:`Quaternion<class_Quaternion>` **get_root_motion_rotation_accumulator**\ (\ ) |const| :ref:`🔗<class_AnimationMixer_method_get_root_motion_rotation_accumulator>`
|
||||
|
||||
检索带有 :ref:`root_motion_track<class_AnimationMixer_property_root_motion_track>` 的旋转轨道的混合值,作为一个 :ref:`Quaternion<class_Quaternion>`\ ,可以在其他地方使用。
|
||||
Retrieve the blended value of the rotation tracks with the :ref:`root_motion_track<class_AnimationMixer_property_root_motion_track>` as a :ref:`Quaternion<class_Quaternion>` that can be used elsewhere.
|
||||
|
||||
这里必须正确地结合根运动位置,并且要考虑到旋转。参考 :ref:`get_root_motion_position<class_AnimationMixer_method_get_root_motion_position>`\ 。
|
||||
This is necessary to apply the root motion position correctly, taking rotation into account. See also :ref:`get_root_motion_position<class_AnimationMixer_method_get_root_motion_position>`.
|
||||
|
||||
并且,当你想重视动画的初始动画帧的值时,这会很有用。
|
||||
Also, this is useful in cases where you want to respect the initial key values of the animation.
|
||||
|
||||
比如说,如果一个动画在上一帧只播放一个 ``Quaternion(0, 0, 0, 1)`` 动画帧,并且一个动画在下一帧只播放了一个动画帧的 ``Quaternion(0, 0.707, 0, 0.707)`` 时,它们相差的值可以这样求出:
|
||||
For example, if an animation with only one key ``Quaternion(0, 0, 0, 1)`` is played in the previous frame and then an animation with only one key ``Quaternion(0, 0.707, 0, 0.707)`` is played in the next frame, the difference can be calculated as follows:
|
||||
|
||||
|
||||
.. tabs::
|
||||
@@ -763,14 +775,14 @@ If a value track has non-numeric type key values, it is internally converted to
|
||||
func _process(delta):
|
||||
if Input.is_action_just_pressed("animate"):
|
||||
state_machine.travel("Animate")
|
||||
var current_root_motion_rotation_accumulator: Quaternion = animation_tree.get_root_motion_Quaternion_accumulator()
|
||||
var current_root_motion_rotation_accumulator: Quaternion = animation_tree.get_root_motion_rotation_accumulator()
|
||||
var difference: Quaternion = prev_root_motion_rotation_accumulator.inverse() * current_root_motion_rotation_accumulator
|
||||
prev_root_motion_rotation_accumulator = current_root_motion_rotation_accumulator
|
||||
transform.basis *= difference
|
||||
transform.basis *= Basis(difference)
|
||||
|
||||
|
||||
|
||||
然而,当一个动画循环时,可能会得到一个意料之外的变化,所以这个只在一些简单情况下才有用。
|
||||
However, if the animation loops, an unintended discrete change may occur, so this is only useful for some simple use cases.
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
@@ -890,10 +902,10 @@ If a value track has non-numeric type key values, it is internally converted to
|
||||
将与键 ``name`` 关联的 :ref:`AnimationLibrary<class_AnimationLibrary>` 移动到键 ``newname``\ 。
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -21,19 +21,19 @@ AnimationNode
|
||||
描述
|
||||
----
|
||||
|
||||
:ref:`AnimationTree<class_AnimationTree>`\ 节点的基本资源。通常,它不会直接使用,但你可以使用自定义混合公式创建自定义混合公式。
|
||||
:ref:`AnimationTree<class_AnimationTree>` 节点的基本资源。通常不会直接使用,不过你可以使用自定义混合公式创建自定义节点。
|
||||
|
||||
在创建主要用于\ :ref:`AnimationNodeBlendTree<class_AnimationNodeBlendTree>`\ 的动画节点时继承此项,否则应使用\ :ref:`AnimationRootNode<class_AnimationRootNode>`\ 。
|
||||
继承这个类的动画节点主要用于 :ref:`AnimationNodeBlendTree<class_AnimationNodeBlendTree>`\ ,否则请使用 :ref:`AnimationRootNode<class_AnimationRootNode>`\ 。
|
||||
|
||||
你可以将时间信息作为只读参数访问,该参数在上一帧中处理并存储在除\ :ref:`AnimationNodeOutput<class_AnimationNodeOutput>`\ 之外的所有节点中。
|
||||
除 :ref:`AnimationNodeOutput<class_AnimationNodeOutput>` 外,所有节点的时间信息都可以通过只读参数来访问,这些信息是在上一帧处理并存储的。
|
||||
|
||||
\ **Note:**\ 如果\ **AnimationNode**\ 中存在多个输入,则哪个时间信息优先取决于\ **AnimationNode**\ 的类型。
|
||||
\ **注意:**\ 如果 **AnimationNode** 中存在多个输入,优先使用哪个输入的时间信息取决于 **AnimationNode** 的类型。
|
||||
|
||||
::
|
||||
|
||||
var current_length=$AnimationTree[parameters/AnimationNodeName/current_length]
|
||||
var current_position=$AnimationTree[parameters/AnimationNodeName/current_position]
|
||||
var current_delta=$AnimationTree[parameters/AnimationNodeName/current_delta]
|
||||
var current_length = $AnimationTree[parameters/AnimationNodeName/current_length]
|
||||
var current_position = $AnimationTree[parameters/AnimationNodeName/current_position]
|
||||
var current_delta = $AnimationTree[parameters/AnimationNodeName/current_delta]
|
||||
|
||||
.. rst-class:: classref-introduction-group
|
||||
|
||||
@@ -482,10 +482,10 @@ enum **FilterAction**: :ref:`🔗<enum_AnimationNode_FilterAction>`
|
||||
设置一个自定义参数。这些参数被用作本地内存,因为资源可以在树或场景中重复使用。
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -33,10 +33,10 @@ AnimationNodeAdd2
|
||||
- :doc:`使用 AnimationTree <../tutorials/animation/animation_tree>`
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -41,10 +41,10 @@ AnimationNodeAdd3
|
||||
- `第三人称射击(TPS)演示 <https://godotengine.org/asset-library/asset/2710>`__
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -218,10 +218,10 @@ enum **PlayMode**: :ref:`🔗<enum_AnimationNodeAnimation_PlayMode>`
|
||||
如果为 ``true``\ ,则 :ref:`AnimationNode<class_AnimationNode>` 会根据 :ref:`Animation<class_Animation>` 资源提供动画并调整部分参数。
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -35,10 +35,10 @@ AnimationNodeBlend2
|
||||
- `第三人称射击(TPS)演示 <https://godotengine.org/asset-library/asset/2710>`__
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -39,10 +39,10 @@ AnimationNodeBlend3
|
||||
- :doc:`使用 AnimationTree <../tutorials/animation/animation_tree>`
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -316,10 +316,10 @@ enum **BlendMode**: :ref:`🔗<enum_AnimationNodeBlendSpace1D_BlendMode>`
|
||||
更新混合轴上索引 ``point`` 处的点的位置。
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -429,10 +429,10 @@ enum **BlendMode**: :ref:`🔗<enum_AnimationNodeBlendSpace2D_BlendMode>`
|
||||
更新混合轴上索引 ``point`` 处的点的位置。
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -280,10 +280,10 @@ AnimationNodeBlendTree
|
||||
修改子动画节点的位置。
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -289,9 +289,9 @@ enum **MixMode**: :ref:`🔗<enum_AnimationNodeOneShot_MixMode>`
|
||||
- |void| **set_fadein_time**\ (\ value\: :ref:`float<class_float>`\ )
|
||||
- :ref:`float<class_float>` **get_fadein_time**\ (\ )
|
||||
|
||||
淡入持续时间。例如,对于5秒长的动画,将其设置为\ ``1.0``\ 将在动画过程中产生从0秒开始到1秒结束的交叉渐变。
|
||||
淡入的持续时间。例如有一个长度为 5 秒的动画,如果将该属性设置为 ``1.0``\ ,就会生成一个从动画的 0 秒处开始、1 秒处结束的交叉渐变。
|
||||
|
||||
\ ** 注意:**\ **AnimationNodeOneShot**\ 在淡入结束后转换当前状态。当\ :ref:`AnimationNodeOutput<class_AnimationNodeOutput>`\ 被视为最上游时,因此\ :ref:`fadein_time<class_AnimationNodeOneShot_property_fadein_time>`\ 会根据下游增量进行缩放。例如,如果将此值设置为\ ``1.0``\ ,并且在下游链接值为\ ``2.0``\ 的\ :ref:`AnimationNodeTimeScale<class_AnimationNodeTimeScale>`\ ,则实际处理时间将为0.5秒。
|
||||
\ **注意:**\ **AnimationNodeOneShot** 是在淡入淡出结束后转换当前状态的。将 :ref:`AnimationNodeOutput<class_AnimationNodeOutput>` 视为最上游时,\ :ref:`fadein_time<class_AnimationNodeOneShot_property_fadein_time>` 会根据下游增量进行缩放。例如将该属性设置为 ``1.0`` 时,如果下游连接的是一个取值为 ``2.0`` 的 :ref:`AnimationNodeTimeScale<class_AnimationNodeTimeScale>`\ ,那么实际的处理时间就是 0.5 秒。
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
@@ -325,9 +325,9 @@ enum **MixMode**: :ref:`🔗<enum_AnimationNodeOneShot_MixMode>`
|
||||
- |void| **set_fadeout_time**\ (\ value\: :ref:`float<class_float>`\ )
|
||||
- :ref:`float<class_float>` **get_fadeout_time**\ (\ )
|
||||
|
||||
淡出持续时间。例如,对于5秒长的动画,将其设置为\ ``1.0``\ 将在动画过程中产生从4秒开始到5秒结束的交叉渐变。
|
||||
淡出的持续时间。例如有一个长度为 5 秒的动画,如果将该属性设置为 ``1.0``\ ,就会生成一个从动画的 4 秒处开始、5 秒处结束的交叉渐变。
|
||||
|
||||
\ ** 注意:**\ **AnimationNodeOneShot**\ 在淡入结束后转换当前状态。当\ :ref:`AnimationNodeOutput<class_AnimationNodeOutput>`\ 被视为最上游时,因此\ :ref:`fadeout_time<class_AnimationNodeOneShot_property_fadeout_time>`\ 会根据下游增量进行缩放。例如,如果将此值设置为\ ``1.0``\ ,并且在下游链接值为\ ``2.0``\ 的\ :ref:`AnimationNodeTimeScale<class_AnimationNodeTimeScale>`\ ,则实际处理时间将为0.5秒。
|
||||
\ **注意:**\ **AnimationNodeOneShot** 是在淡入淡出结束后转换当前状态的。将 :ref:`AnimationNodeOutput<class_AnimationNodeOutput>` 视为最上游时,\ :ref:`fadein_time<class_AnimationNodeOneShot_property_fadein_time>` 会根据下游增量进行缩放。例如将该属性设置为 ``1.0`` 时,如果下游连接的是一个取值为 ``2.0`` 的 :ref:`AnimationNodeTimeScale<class_AnimationNodeTimeScale>`\ ,那么实际的处理时间就是 0.5 秒。
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
@@ -347,10 +347,10 @@ enum **MixMode**: :ref:`🔗<enum_AnimationNodeOneShot_MixMode>`
|
||||
混合类型。
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -33,10 +33,10 @@ AnimationNodeOutput
|
||||
- `第三人称射击(TPS)演示 <https://godotengine.org/asset-library/asset/2710>`__
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -440,10 +440,10 @@ enum **StateMachineType**: :ref:`🔗<enum_AnimationNodeStateMachine_StateMachin
|
||||
设置动画节点的坐标。用于在编辑器中显示。
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -223,10 +223,10 @@ AnimationNodeStateMachinePlayback
|
||||
如果 ``reset_on_teleport`` 为 ``true``\ ,当行进导致传送时,该动画将从头开始播放。
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -317,15 +317,15 @@ enum **AdvanceMode**: :ref:`🔗<enum_AnimationNodeStateMachineTransition_Advanc
|
||||
- |void| **set_xfade_time**\ (\ value\: :ref:`float<class_float>`\ )
|
||||
- :ref:`float<class_float>` **get_xfade_time**\ (\ )
|
||||
|
||||
在此状态和下一状态之间交叉淡入淡出的时间。
|
||||
在该状态和下一个状态之间交叉渐变的时间。
|
||||
|
||||
\ ** 注意:**\ :ref:`AnimationNodeStateMachine<class_AnimationNodeStateMachine>`\ 在淡入开始后立即转换当前状态。精确的剩余时间只能从主动画中推断出来。当\ :ref:`AnimationNodeOutput<class_AnimationNodeOutput>`\ 被视为最上游时,因此\ :ref:`xfade_time<class_AnimationNodeStateMachineTransition_property_xfade_time>`\ 不会根据下游增量进行缩放。另请参见\ :ref:`AnimationNodeOneShot.fadeout_time<class_AnimationNodeOneShot_property_fadeout_time>`\ 。
|
||||
\ **注意:**\ :ref:`AnimationNodeStateMachine<class_AnimationNodeStateMachine>` 是在淡入淡出结束后转换当前状态的。只能根据主动画推断精确的剩余时间。将 :ref:`AnimationNodeOutput<class_AnimationNodeOutput>` 视为最上游时,\ :ref:`xfade_time<class_AnimationNodeStateMachineTransition_property_xfade_time>` 不会根据下游增量进行缩放。另见 :ref:`AnimationNodeOneShot.fadeout_time<class_AnimationNodeOneShot_property_fadeout_time>`\ 。
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -35,10 +35,10 @@ AnimationNodeSub2
|
||||
- :doc:`AnimationTree <../tutorials/animation/animation_tree>`
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -67,10 +67,10 @@ AnimationNodeSync
|
||||
如果为 ``true``\ ,则强制混合动画以前进帧。
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -31,10 +31,10 @@ AnimationNodeTimeScale
|
||||
- `3D 平台跳跃演示 <https://godotengine.org/asset-library/asset/2748>`__
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -56,10 +56,10 @@ AnimationNodeTimeSeek
|
||||
- :doc:`使用 AnimationTree <../tutorials/animation/animation_tree>`
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -180,9 +180,9 @@ AnimationNodeTransition
|
||||
- |void| **set_xfade_time**\ (\ value\: :ref:`float<class_float>`\ )
|
||||
- :ref:`float<class_float>` **get_xfade_time**\ (\ )
|
||||
|
||||
连接到输入的每个动画之间的交叉衰落时间(以秒为单位)。
|
||||
输入所连接的动画之间交叉渐变的时间(单位为秒)。
|
||||
|
||||
\ ** 注意:**\ **AnimationNodeTransition**\ 在渐变开始后立即转换当前状态。精确的剩余时间只能从主动画中推断出来。当\ :ref:`AnimationNodeOutput<class_AnimationNodeOutput>`\ 被视为最上游时,因此\ :ref:`xfade_time<class_AnimationNodeTransition_property_xfade_time>`\ 不会根据下游增量进行缩放。另请参见\ :ref:`AnimationNodeOneShot.fadeout_time<class_AnimationNodeOneShot_property_fadeout_time>`\ 。
|
||||
\ **注意:**\ **AnimationNodeTransition** 是在淡入淡出结束后转换当前状态的。只能根据主动画推断精确的剩余时间。将 :ref:`AnimationNodeOutput<class_AnimationNodeOutput>` 视为最上游时,\ :ref:`xfade_time<class_AnimationNodeTransition_property_xfade_time>` 不会根据下游增量进行缩放。另见 :ref:`AnimationNodeOneShot.fadeout_time<class_AnimationNodeOneShot_property_fadeout_time>`\ 。
|
||||
|
||||
.. rst-class:: classref-section-separator
|
||||
|
||||
@@ -262,10 +262,10 @@ AnimationNodeTransition
|
||||
如果为 ``true``\ ,则目标动画在动画过渡时重新启动。
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -354,9 +354,9 @@ enum **AnimationMethodCallMode**: :ref:`🔗<enum_AnimationPlayer_AnimationMetho
|
||||
- |void| **set_auto_capture**\ (\ value\: :ref:`bool<class_bool>`\ )
|
||||
- :ref:`bool<class_bool>` **is_auto_capture**\ (\ )
|
||||
|
||||
如果\ ``true``\ ,则在自动播放之前执行\ :ref:`AnimationMixer.capture<class_AnimationMixer_method_capture>`\ 。这意味着只使用默认参数执行\ :ref:`play_with_capture<class_AnimationPlayer_method_play_with_capture>`\ ,而不是\ :ref:`play<class_AnimationPlayer_method_play>`\ 。
|
||||
如果为 ``true``\ ,则会在自动播放之前执行 :ref:`AnimationMixer.capture<class_AnimationMixer_method_capture>`\ 。这意味着只会使用默认参数执行 :ref:`play_with_capture<class_AnimationPlayer_method_play_with_capture>`\ ,不会执行 :ref:`play<class_AnimationPlayer_method_play>`\ 。
|
||||
|
||||
\ ** 注意:**\ 只有当动画包含捕捉轨迹时,才会执行捕捉插值。另请参见\ :ref:`Animation.UPDATE_CAPTURE<class_Animation_constant_UPDATE_CAPTURE>`\ 。
|
||||
\ **注意:**\ 只有当动画包含捕获轨道时才会执行捕获插值。另见 :ref:`Animation.UPDATE_CAPTURE<class_Animation_constant_UPDATE_CAPTURE>`\ 。
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
@@ -636,9 +636,9 @@ enum **AnimationMethodCallMode**: :ref:`🔗<enum_AnimationPlayer_AnimationMetho
|
||||
|
||||
|void| **play_with_capture**\ (\ name\: :ref:`StringName<class_StringName>` = &"", duration\: :ref:`float<class_float>` = -1.0, custom_blend\: :ref:`float<class_float>` = -1, custom_speed\: :ref:`float<class_float>` = 1.0, from_end\: :ref:`bool<class_bool>` = false, trans_type\: :ref:`TransitionType<enum_Tween_TransitionType>` = 0, ease_type\: :ref:`EaseType<enum_Tween_EaseType>` = 0\ ) :ref:`🔗<class_AnimationPlayer_method_play_with_capture>`
|
||||
|
||||
另请参见 :ref:`AnimationMixer.capture<class_AnimationMixer_method_capture>`\ 。
|
||||
另见 :ref:`AnimationMixer.capture<class_AnimationMixer_method_capture>`\ 。
|
||||
|
||||
你可以使用此方法比 :ref:`playback_auto_capture<class_AnimationPlayer_property_playback_auto_capture>`\ 执行的选项有更详细的捕获选项。当\ :ref:`playback_auto_capture<class_AnimationPlayer_property_playback_auto_capture>`\ 为\ ``false``\ 时,此方法与下列相同:
|
||||
该方法提供的选项比 :ref:`playback_auto_capture<class_AnimationPlayer_property_playback_auto_capture>` 更丰富。\ :ref:`playback_auto_capture<class_AnimationPlayer_property_playback_auto_capture>` 为 ``false`` 时,该方法与下面这两行基本相同:
|
||||
|
||||
::
|
||||
|
||||
@@ -647,9 +647,9 @@ enum **AnimationMethodCallMode**: :ref:`🔗<enum_AnimationPlayer_AnimationMetho
|
||||
|
||||
如果 ``name`` 为空,则指定的是 :ref:`assigned_animation<class_AnimationPlayer_property_assigned_animation>`\ 。
|
||||
|
||||
如果 ``duration`` 为负数,则 duration 被设置为当前位置和第一个关键帧之间的间隔,\ ``from_end`` 为 ``true`` 时使用的是当前位置和最后一个关键帧之间的间隔。
|
||||
如果 ``duration`` 为负值,则持续时间是当前位置与第一个关键帧的间隔,\ ``from_end`` 为 ``true`` 时使用的则是当前位置与最后一个关键帧之间的间隔。
|
||||
|
||||
\ **Note:**\ ``duration`` 会考虑 :ref:`speed_scale<class_AnimationPlayer_property_speed_scale>`\ ,但是 ``custom_speed`` 不会考虑,因为捕获缓存是和混合结果进行插值的,而插值结果可能包含多个动画。
|
||||
\ **注意:**\ ``duration`` 会考虑 :ref:`speed_scale<class_AnimationPlayer_property_speed_scale>`\ ,但 ``custom_speed`` 不会考虑,因为捕获缓存会和混合结果进行插值,而混合结果可能包含多个动画。
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
@@ -661,9 +661,9 @@ enum **AnimationMethodCallMode**: :ref:`🔗<enum_AnimationPlayer_AnimationMetho
|
||||
|
||||
|void| **queue**\ (\ name\: :ref:`StringName<class_StringName>`\ ) :ref:`🔗<class_AnimationPlayer_method_queue>`
|
||||
|
||||
将动画加入队列,在当前动画播放完毕后播放。
|
||||
Queues an animation for playback once the current animation and all previously queued animations are done.
|
||||
|
||||
\ **注意:**\ 如果当前正在播放循环动画,除非以某种方式停止循环动画,否则排队的动画将永远不会播放。
|
||||
\ **Note:** If a looped animation is currently playing, the queued animation will never play unless the looped animation is stopped somehow.
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
@@ -752,10 +752,10 @@ enum **AnimationMethodCallMode**: :ref:`🔗<enum_AnimationPlayer_AnimationMetho
|
||||
\ **注意:**\ 方法/音频/动画播放轨道不会被该方法处理。
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -33,10 +33,10 @@ AnimationRootNode
|
||||
- :doc:`使用 AnimationTree <../tutorials/animation/animation_tree>`
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -218,10 +218,10 @@ enum **AnimationProcessCallback**: :ref:`🔗<enum_AnimationTree_AnimationProces
|
||||
设置要更新动画的过程通知。
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -655,10 +655,10 @@ enum **SpaceOverride**: :ref:`🔗<enum_Area2D_SpaceOverride>`
|
||||
参数 ``body`` 可以是 :ref:`PhysicsBody2D<class_PhysicsBody2D>` 实例,也可以是 :ref:`TileMap<class_TileMap>` 实例。TileMap 虽然不是物理物体,但会把图块的碰撞形状注册为虚拟物理物体。
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -662,7 +662,7 @@ enum **SpaceOverride**: :ref:`🔗<enum_Area3D_SpaceOverride>`
|
||||
|
||||
风力随距离原点的距离而减小的指数速率。
|
||||
|
||||
\ ** 注意:**\ 此风力仅适用于\ :ref:`SoftBody3D<class_SoftBody3D>`\ 节点。其他物理体目前不受风的影响。
|
||||
\ **注意:**\ 风力仅适用于 :ref:`SoftBody3D<class_SoftBody3D>` 节点。其他物理体目前不受风的影响。
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
@@ -681,7 +681,7 @@ enum **SpaceOverride**: :ref:`🔗<enum_Area3D_SpaceOverride>`
|
||||
|
||||
特定区域风力的大小。
|
||||
|
||||
\ ** 注意:**\ 此风力仅适用于\ :ref:`SoftBody3D<class_SoftBody3D>`\ 节点。其他物理体目前不受风的影响。
|
||||
\ **注意:**\ 风力仅适用于 :ref:`SoftBody3D<class_SoftBody3D>` 节点。其他物理体目前不受风的影响。
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
@@ -698,9 +698,9 @@ enum **SpaceOverride**: :ref:`🔗<enum_Area3D_SpaceOverride>`
|
||||
- |void| **set_wind_source_path**\ (\ value\: :ref:`NodePath<class_NodePath>`\ )
|
||||
- :ref:`NodePath<class_NodePath>` **get_wind_source_path**\ (\ )
|
||||
|
||||
:ref:`Node3D<class_Node3D>` 用于指定区域风力的方向和原点。方向与 :ref:`Node3D<class_Node3D>` 本地变换的 Z 轴相反,原点为 :ref:`Node3D<class_Node3D>` 本地变换的原点。
|
||||
指定区域风力方向和原点的 :ref:`Node3D<class_Node3D>`\ 。方向与 :ref:`Node3D<class_Node3D>` 本地变换的 Z 轴相反,原点为 :ref:`Node3D<class_Node3D>` 本地变换的原点。
|
||||
|
||||
\ **Note:** 这种风力只适用于 :ref:`SoftBody3D<class_SoftBody3D>` 节点。其他物理物体目前不受风力影响。
|
||||
\ **注意:**\ 这种风力只适用于 :ref:`SoftBody3D<class_SoftBody3D>` 节点。其他物理体目前不受风力影响。
|
||||
|
||||
.. rst-class:: classref-section-separator
|
||||
|
||||
@@ -794,10 +794,10 @@ enum **SpaceOverride**: :ref:`🔗<enum_Area3D_SpaceOverride>`
|
||||
参数 ``body`` 可以是 :ref:`PhysicsBody3D<class_PhysicsBody3D>` 实例,也可以是 :ref:`GridMap<class_GridMap>` 实例。GridMap 虽然不是物理物体,但会把图块的碰撞形状注册为虚拟物理物体。
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -197,7 +197,9 @@ ArrayMesh
|
||||
- |void| **set_shadow_mesh**\ (\ value\: :ref:`ArrayMesh<class_ArrayMesh>`\ )
|
||||
- :ref:`ArrayMesh<class_ArrayMesh>` **get_shadow_mesh**\ (\ )
|
||||
|
||||
用于渲染阴影并可用于深度预通道的可选网格。可用于通过使用仅包含顶点位置数据(不含法线、UV、颜色等)的网格来提高阴影渲染的性能。
|
||||
An optional mesh which can be used for rendering shadows and the depth prepass. Can be used to increase performance by supplying a mesh with fused vertices and only vertex position data (without normals, UVs, colors, etc.).
|
||||
|
||||
\ **Note:** This mesh must have exactly the same vertex positions as the source mesh (including the source mesh's LODs, if present). If vertex positions differ, then the mesh will not draw correctly.
|
||||
|
||||
.. rst-class:: classref-section-separator
|
||||
|
||||
@@ -420,7 +422,7 @@ ArrayMesh
|
||||
|
||||
.. container:: contribute
|
||||
|
||||
目前没有这个方法的描述。请帮我们\ :ref:`贡献一个 <doc_updating_the_class_reference>`\ !
|
||||
该方法目前没有描述,请帮我们\ :ref:`贡献一个 <doc_updating_the_class_reference>`\ 吧!
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
@@ -434,7 +436,7 @@ ArrayMesh
|
||||
|
||||
.. container:: contribute
|
||||
|
||||
目前没有这个方法的描述。请帮我们\ :ref:`贡献一个 <doc_updating_the_class_reference>`\ !
|
||||
该方法目前没有描述,请帮我们\ :ref:`贡献一个 <doc_updating_the_class_reference>`\ 吧!
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
@@ -448,13 +450,13 @@ ArrayMesh
|
||||
|
||||
.. container:: contribute
|
||||
|
||||
目前没有这个方法的描述。请帮我们\ :ref:`贡献一个 <doc_updating_the_class_reference>`\ !
|
||||
该方法目前没有描述,请帮我们\ :ref:`贡献一个 <doc_updating_the_class_reference>`\ 吧!
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -121,10 +121,10 @@ ArrayOccluder3D
|
||||
设置 :ref:`indices<class_ArrayOccluder3D_property_indices>` 和 :ref:`vertices<class_ArrayOccluder3D_property_vertices>`\ ,同时会在两个值都被设置后仅更新一次最终遮挡物。
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -203,10 +203,10 @@ enum **AlignmentMode**: :ref:`🔗<enum_AspectRatioContainer_AlignmentMode>`
|
||||
用来对齐子控件的拉伸模式。
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -529,10 +529,10 @@ A\* 算法的一种实现,用于在 2D 空间中的连通图上找到两个顶
|
||||
为给定的 ``id`` 的点设置 ``weight_scale``\ 。在确定从邻接点到这个点的一段路程的总成本时,\ ``weight_scale`` 要乘以 :ref:`_compute_cost<class_AStar2D_private_method__compute_cost>` 的结果。
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -564,10 +564,10 @@ A\*(A 星)是一种计算机算法,用于寻路和图遍历,即穿过一
|
||||
为给定的 ``id`` 的点设置 ``weight_scale``\ 。在确定从邻接点到这个点的一段路程的总成本时,\ ``weight_scale`` 要乘以 :ref:`_compute_cost<class_AStar3D_private_method__compute_cost>` 的结果。
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -674,10 +674,10 @@ enum **CellShape**: :ref:`🔗<enum_AStarGrid2D_CellShape>`
|
||||
\ **注意:**\ 会清空所有点的数据(坚固以及权重比例)。
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -116,13 +116,13 @@ AtlasTexture
|
||||
- |void| **set_region**\ (\ value\: :ref:`Rect2<class_Rect2>`\ )
|
||||
- :ref:`Rect2<class_Rect2>` **get_region**\ (\ )
|
||||
|
||||
用于绘制 :ref:`atlas<class_AtlasTexture_property_atlas>` 的区域。
|
||||
The region used to draw the :ref:`atlas<class_AtlasTexture_property_atlas>`. If either dimension of the region's size is ``0``, the value from :ref:`atlas<class_AtlasTexture_property_atlas>` size will be used for that axis instead.
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -22,10 +22,10 @@ AudioBusLayout
|
||||
存储位置、静音、独奏、旁通、效果、效果位置、音量以及总线之间的连接。使用方法见 :ref:`AudioServer<class_AudioServer>` 。
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -78,10 +78,10 @@ AudioEffect
|
||||
\ **注意:**\ 建议在新实例中保留对原始 **AudioEffect** 的引用。根据实现,这允许效果实例在运行时监听更改并进行相应的修改。
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -63,10 +63,10 @@ AudioEffectAmplify
|
||||
以分贝为单位的放大量。正值使声音更响亮,负值使声音更安静。数值范围从 -80 到 24。
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -29,10 +29,10 @@ AudioEffectBandLimitFilter
|
||||
- :doc:`音频总线 <../tutorials/audio/audio_buses>`
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -29,10 +29,10 @@ AudioEffectBandPassFilter
|
||||
- :doc:`音频总线 <../tutorials/audio/audio_buses>`
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -186,10 +186,10 @@ AudioEffectCapture 是一种 AudioEffect,可将所有音频帧从附加的音
|
||||
返回从音频总线插入的音频帧的数量。
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -607,7 +607,7 @@ AudioEffectChorus
|
||||
|
||||
.. container:: contribute
|
||||
|
||||
目前没有这个方法的描述。请帮我们\ :ref:`贡献一个 <doc_updating_the_class_reference>`\ !
|
||||
该方法目前没有描述,请帮我们\ :ref:`贡献一个 <doc_updating_the_class_reference>`\ 吧!
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
@@ -621,7 +621,7 @@ AudioEffectChorus
|
||||
|
||||
.. container:: contribute
|
||||
|
||||
目前没有这个方法的描述。请帮我们\ :ref:`贡献一个 <doc_updating_the_class_reference>`\ !
|
||||
该方法目前没有描述,请帮我们\ :ref:`贡献一个 <doc_updating_the_class_reference>`\ 吧!
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
@@ -635,7 +635,7 @@ AudioEffectChorus
|
||||
|
||||
.. container:: contribute
|
||||
|
||||
目前没有这个方法的描述。请帮我们\ :ref:`贡献一个 <doc_updating_the_class_reference>`\ !
|
||||
该方法目前没有描述,请帮我们\ :ref:`贡献一个 <doc_updating_the_class_reference>`\ 吧!
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
@@ -649,7 +649,7 @@ AudioEffectChorus
|
||||
|
||||
.. container:: contribute
|
||||
|
||||
目前没有这个方法的描述。请帮我们\ :ref:`贡献一个 <doc_updating_the_class_reference>`\ !
|
||||
该方法目前没有描述,请帮我们\ :ref:`贡献一个 <doc_updating_the_class_reference>`\ 吧!
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
@@ -663,7 +663,7 @@ AudioEffectChorus
|
||||
|
||||
.. container:: contribute
|
||||
|
||||
目前没有这个方法的描述。请帮我们\ :ref:`贡献一个 <doc_updating_the_class_reference>`\ !
|
||||
该方法目前没有描述,请帮我们\ :ref:`贡献一个 <doc_updating_the_class_reference>`\ 吧!
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
@@ -677,7 +677,7 @@ AudioEffectChorus
|
||||
|
||||
.. container:: contribute
|
||||
|
||||
目前没有这个方法的描述。请帮我们\ :ref:`贡献一个 <doc_updating_the_class_reference>`\ !
|
||||
该方法目前没有描述,请帮我们\ :ref:`贡献一个 <doc_updating_the_class_reference>`\ 吧!
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
@@ -691,7 +691,7 @@ AudioEffectChorus
|
||||
|
||||
.. container:: contribute
|
||||
|
||||
目前没有这个方法的描述。请帮我们\ :ref:`贡献一个 <doc_updating_the_class_reference>`\ !
|
||||
该方法目前没有描述,请帮我们\ :ref:`贡献一个 <doc_updating_the_class_reference>`\ 吧!
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
@@ -705,7 +705,7 @@ AudioEffectChorus
|
||||
|
||||
.. container:: contribute
|
||||
|
||||
目前没有这个方法的描述。请帮我们\ :ref:`贡献一个 <doc_updating_the_class_reference>`\ !
|
||||
该方法目前没有描述,请帮我们\ :ref:`贡献一个 <doc_updating_the_class_reference>`\ 吧!
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
@@ -719,7 +719,7 @@ AudioEffectChorus
|
||||
|
||||
.. container:: contribute
|
||||
|
||||
目前没有这个方法的描述。请帮我们\ :ref:`贡献一个 <doc_updating_the_class_reference>`\ !
|
||||
该方法目前没有描述,请帮我们\ :ref:`贡献一个 <doc_updating_the_class_reference>`\ 吧!
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
@@ -733,7 +733,7 @@ AudioEffectChorus
|
||||
|
||||
.. container:: contribute
|
||||
|
||||
目前没有这个方法的描述。请帮我们\ :ref:`贡献一个 <doc_updating_the_class_reference>`\ !
|
||||
该方法目前没有描述,请帮我们\ :ref:`贡献一个 <doc_updating_the_class_reference>`\ 吧!
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
@@ -747,7 +747,7 @@ AudioEffectChorus
|
||||
|
||||
.. container:: contribute
|
||||
|
||||
目前没有这个方法的描述。请帮我们\ :ref:`贡献一个 <doc_updating_the_class_reference>`\ !
|
||||
该方法目前没有描述,请帮我们\ :ref:`贡献一个 <doc_updating_the_class_reference>`\ 吧!
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
@@ -761,13 +761,13 @@ AudioEffectChorus
|
||||
|
||||
.. container:: contribute
|
||||
|
||||
目前没有这个方法的描述。请帮我们\ :ref:`贡献一个 <doc_updating_the_class_reference>`\ !
|
||||
该方法目前没有描述,请帮我们\ :ref:`贡献一个 <doc_updating_the_class_reference>`\ 吧!
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -189,10 +189,10 @@ AudioEffectCompressor
|
||||
超过该电平,压缩将应用于音频。值的范围可以从 -60 到 0。
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -293,10 +293,10 @@ AudioEffectDelay
|
||||
第二拍的声像位置。取值范围为 -1(完全向左)到 1(完全向右)。
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -83,7 +83,7 @@ enum **Mode**: :ref:`🔗<enum_AudioEffectDistortion_Mode>`
|
||||
|
||||
.. container:: contribute
|
||||
|
||||
目前没有这个枚举的描述。请帮我们\ :ref:`贡献一个 <doc_updating_the_class_reference>`\ !
|
||||
该枚举目前没有描述,请帮我们\ :ref:`贡献一个 <doc_updating_the_class_reference>`\ 吧!
|
||||
|
||||
|
||||
|
||||
@@ -202,10 +202,10 @@ enum **Mode**: :ref:`🔗<enum_AudioEffectDistortion_Mode>`
|
||||
在效果前增加或减少的音量,单位为分贝。取值范围从 -60 到 60。
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -90,10 +90,10 @@ AudioEffectEQ 可用于频率控制。用它来弥补音频中不足之处。Aud
|
||||
设置指定索引处的波段增益,单位为 dB。
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -53,10 +53,10 @@ AudioEffectEQ10
|
||||
- :doc:`音频总线 <../tutorials/audio/audio_buses>`
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -75,10 +75,10 @@ AudioEffectEQ21
|
||||
- :doc:`音频总线 <../tutorials/audio/audio_buses>`
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -45,10 +45,10 @@ AudioEffectEQ6
|
||||
- :doc:`音频总线 <../tutorials/audio/audio_buses>`
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -71,7 +71,7 @@ enum **FilterDB**: :ref:`🔗<enum_AudioEffectFilter_FilterDB>`
|
||||
|
||||
.. container:: contribute
|
||||
|
||||
目前没有这个枚举的描述。请帮我们\ :ref:`贡献一个 <doc_updating_the_class_reference>`\ !
|
||||
该枚举目前没有描述,请帮我们\ :ref:`贡献一个 <doc_updating_the_class_reference>`\ 吧!
|
||||
|
||||
|
||||
|
||||
@@ -83,7 +83,7 @@ enum **FilterDB**: :ref:`🔗<enum_AudioEffectFilter_FilterDB>`
|
||||
|
||||
.. container:: contribute
|
||||
|
||||
目前没有这个枚举的描述。请帮我们\ :ref:`贡献一个 <doc_updating_the_class_reference>`\ !
|
||||
该枚举目前没有描述,请帮我们\ :ref:`贡献一个 <doc_updating_the_class_reference>`\ 吧!
|
||||
|
||||
|
||||
|
||||
@@ -95,7 +95,7 @@ enum **FilterDB**: :ref:`🔗<enum_AudioEffectFilter_FilterDB>`
|
||||
|
||||
.. container:: contribute
|
||||
|
||||
目前没有这个枚举的描述。请帮我们\ :ref:`贡献一个 <doc_updating_the_class_reference>`\ !
|
||||
该枚举目前没有描述,请帮我们\ :ref:`贡献一个 <doc_updating_the_class_reference>`\ 吧!
|
||||
|
||||
|
||||
|
||||
@@ -107,7 +107,7 @@ enum **FilterDB**: :ref:`🔗<enum_AudioEffectFilter_FilterDB>`
|
||||
|
||||
.. container:: contribute
|
||||
|
||||
目前没有这个枚举的描述。请帮我们\ :ref:`贡献一个 <doc_updating_the_class_reference>`\ !
|
||||
该枚举目前没有描述,请帮我们\ :ref:`贡献一个 <doc_updating_the_class_reference>`\ 吧!
|
||||
|
||||
|
||||
|
||||
@@ -150,7 +150,7 @@ enum **FilterDB**: :ref:`🔗<enum_AudioEffectFilter_FilterDB>`
|
||||
|
||||
.. container:: contribute
|
||||
|
||||
目前没有这个属性的描述。请帮我们\ :ref:`贡献一个 <doc_updating_the_class_reference>`\ !
|
||||
该属性目前没有描述,请帮我们\ :ref:`贡献一个 <doc_updating_the_class_reference>`\ 吧!
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
@@ -187,10 +187,10 @@ enum **FilterDB**: :ref:`🔗<enum_AudioEffectFilter_FilterDB>`
|
||||
在截断频率附近的频率范围内的提升量。
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -103,10 +103,10 @@ AudioEffectHardLimiter
|
||||
增益降低完全释放所需的时间(以秒为单位)。
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -29,10 +29,10 @@ AudioEffectHighPassFilter
|
||||
- :doc:`音频总线 <../tutorials/audio/audio_buses>`
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -29,10 +29,10 @@ AudioEffectHighShelfFilter
|
||||
- :doc:`音频总线 <../tutorials/audio/audio_buses>`
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -78,10 +78,10 @@ AudioEffectInstance
|
||||
应返回 ``true`` 以强制 :ref:`AudioServer<class_AudioServer>` 始终调用 :ref:`_process<class_AudioEffectInstance_private_method__process>`\ ,即使总线已静音或无法听到。
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -106,7 +106,7 @@ AudioEffectLimiter
|
||||
|
||||
.. container:: contribute
|
||||
|
||||
目前没有这个属性的描述。请帮我们\ :ref:`贡献一个 <doc_updating_the_class_reference>`\ !
|
||||
该属性目前没有描述,请帮我们\ :ref:`贡献一个 <doc_updating_the_class_reference>`\ 吧!
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
@@ -126,10 +126,10 @@ AudioEffectLimiter
|
||||
限制器开始生效的阈值,以分贝为单位。值的范围可以从 -30 到 0。
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -29,10 +29,10 @@ AudioEffectLowPassFilter
|
||||
- :doc:`音频总线 <../tutorials/audio/audio_buses>`
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -29,10 +29,10 @@ AudioEffectLowShelfFilter
|
||||
- :doc:`音频总线 <../tutorials/audio/audio_buses>`
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -29,10 +29,10 @@ AudioEffectNotchFilter
|
||||
- :doc:`音频总线 <../tutorials/audio/audio_buses>`
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -63,10 +63,10 @@ AudioEffectPanner
|
||||
声像位置。值的范围可以从 -1(完全左)到1(完全右)。
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -141,10 +141,10 @@ AudioEffectPhaser
|
||||
以 Hz 为单位调整效果在整个频率范围内上下扫描的速度。
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -166,10 +166,10 @@ enum **FFTSize**: :ref:`🔗<enum_AudioEffectPitchShift_FFTSize>`
|
||||
要使用的音高缩放。\ ``1.0`` 是默认的音高,声音会按原样播放。\ :ref:`pitch_scale<class_AudioEffectPitchShift_property_pitch_scale>` 的范围从 ``0.0``\ (无限低的音高,听不见)到 ``16``\ (比初始音高要高 16 倍)。
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -128,10 +128,10 @@ AudioEffectRecord
|
||||
如果为 ``true``\ ,将录制声音。请注意,重新开始录音将移除先前录音的样本。
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -198,10 +198,10 @@ AudioEffectReverb
|
||||
修改后声音的输出百分比。为 0 时,只输出原始声音。取值范围是 0 到 1。
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -19,9 +19,11 @@ AudioEffectSpectrumAnalyzer
|
||||
描述
|
||||
----
|
||||
|
||||
这种音频效果不影响声音输出,但可以用于实时音频可视化。
|
||||
This audio effect does not affect sound output, but can be used for real-time audio visualizations.
|
||||
|
||||
使用程序生成声音请参阅 :ref:`AudioStreamGenerator<class_AudioStreamGenerator>`\ 。
|
||||
This resource configures an :ref:`AudioEffectSpectrumAnalyzerInstance<class_AudioEffectSpectrumAnalyzerInstance>`, which performs the actual analysis at runtime. An instance can be acquired with :ref:`AudioServer.get_bus_effect_instance<class_AudioServer_method_get_bus_effect_instance>`.
|
||||
|
||||
See also :ref:`AudioStreamGenerator<class_AudioStreamGenerator>` for procedurally generating sounds.
|
||||
|
||||
.. rst-class:: classref-introduction-group
|
||||
|
||||
@@ -165,13 +167,13 @@ enum **FFTSize**: :ref:`🔗<enum_AudioEffectSpectrumAnalyzer_FFTSize>`
|
||||
|
||||
.. container:: contribute
|
||||
|
||||
目前没有这个属性的描述。请帮我们\ :ref:`贡献一个 <doc_updating_the_class_reference>`\ !
|
||||
该属性目前没有描述,请帮我们\ :ref:`贡献一个 <doc_updating_the_class_reference>`\ 吧!
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -12,9 +12,23 @@ AudioEffectSpectrumAnalyzerInstance
|
||||
|
||||
**继承:** :ref:`AudioEffectInstance<class_AudioEffectInstance>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
|
||||
|
||||
.. container:: contribute
|
||||
Queryable instance of an :ref:`AudioEffectSpectrumAnalyzer<class_AudioEffectSpectrumAnalyzer>`.
|
||||
|
||||
目前没有这个类的描述。请帮我们\ :ref:`贡献一个 <doc_updating_the_class_reference>`\ !
|
||||
.. rst-class:: classref-introduction-group
|
||||
|
||||
描述
|
||||
----
|
||||
|
||||
The runtime part of an :ref:`AudioEffectSpectrumAnalyzer<class_AudioEffectSpectrumAnalyzer>`, which can be used to query the magnitude of a frequency range on its host bus.
|
||||
|
||||
An instance of this class can be acquired with :ref:`AudioServer.get_bus_effect_instance<class_AudioServer_method_get_bus_effect_instance>`.
|
||||
|
||||
.. rst-class:: classref-introduction-group
|
||||
|
||||
教程
|
||||
----
|
||||
|
||||
- `音频频谱可视化演示 <https://godotengine.org/asset-library/asset/2762>`__
|
||||
|
||||
.. rst-class:: classref-reftable-group
|
||||
|
||||
@@ -49,7 +63,7 @@ enum **MagnitudeMode**: :ref:`🔗<enum_AudioEffectSpectrumAnalyzerInstance_Magn
|
||||
|
||||
:ref:`MagnitudeMode<enum_AudioEffectSpectrumAnalyzerInstance_MagnitudeMode>` **MAGNITUDE_AVERAGE** = ``0``
|
||||
|
||||
用平均值作为幅度。
|
||||
Use the average value across the frequency range as magnitude.
|
||||
|
||||
.. _class_AudioEffectSpectrumAnalyzerInstance_constant_MAGNITUDE_MAX:
|
||||
|
||||
@@ -57,7 +71,7 @@ enum **MagnitudeMode**: :ref:`🔗<enum_AudioEffectSpectrumAnalyzerInstance_Magn
|
||||
|
||||
:ref:`MagnitudeMode<enum_AudioEffectSpectrumAnalyzerInstance_MagnitudeMode>` **MAGNITUDE_MAX** = ``1``
|
||||
|
||||
用最大值作为幅度。
|
||||
Use the maximum value of the frequency range as magnitude.
|
||||
|
||||
.. rst-class:: classref-section-separator
|
||||
|
||||
@@ -74,15 +88,15 @@ enum **MagnitudeMode**: :ref:`🔗<enum_AudioEffectSpectrumAnalyzerInstance_Magn
|
||||
|
||||
:ref:`Vector2<class_Vector2>` **get_magnitude_for_frequency_range**\ (\ from_hz\: :ref:`float<class_float>`, to_hz\: :ref:`float<class_float>`, mode\: :ref:`MagnitudeMode<enum_AudioEffectSpectrumAnalyzerInstance_MagnitudeMode>` = 1\ ) |const| :ref:`🔗<class_AudioEffectSpectrumAnalyzerInstance_method_get_magnitude_for_frequency_range>`
|
||||
|
||||
.. container:: contribute
|
||||
Returns the magnitude of the frequencies from ``from_hz`` to ``to_hz`` in linear energy as a Vector2. The ``x`` component of the return value represents the left stereo channel, and ``y`` represents the right channel.
|
||||
|
||||
目前没有这个方法的描述。请帮我们\ :ref:`贡献一个 <doc_updating_the_class_reference>`\ !
|
||||
\ ``mode`` determines how the frequency range will be processed. See :ref:`MagnitudeMode<enum_AudioEffectSpectrumAnalyzerInstance_MagnitudeMode>`.
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -83,7 +83,7 @@ AudioEffectStereoEnhance
|
||||
|
||||
.. container:: contribute
|
||||
|
||||
目前没有这个属性的描述。请帮我们\ :ref:`贡献一个 <doc_updating_the_class_reference>`\ !
|
||||
该属性目前没有描述,请帮我们\ :ref:`贡献一个 <doc_updating_the_class_reference>`\ 吧!
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
@@ -102,13 +102,13 @@ AudioEffectStereoEnhance
|
||||
|
||||
.. container:: contribute
|
||||
|
||||
目前没有这个属性的描述。请帮我们\ :ref:`贡献一个 <doc_updating_the_class_reference>`\ !
|
||||
该属性目前没有描述,请帮我们\ :ref:`贡献一个 <doc_updating_the_class_reference>`\ 吧!
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -86,10 +86,10 @@ AudioListener2D
|
||||
如果 **AudioListener2D** 未添加到 :ref:`SceneTree<class_SceneTree>`\ ,则该方法无效。
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -98,10 +98,10 @@ AudioListener3D
|
||||
启用该监听器。将覆盖当前相机的监听器。
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -24,10 +24,10 @@ Base class for audio samples.
|
||||
Base class for audio samples.
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -24,10 +24,10 @@ Meta class for playing back audio samples.
|
||||
Meta class for playing back audio samples.
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -236,7 +236,7 @@ enum **PlaybackType**: :ref:`🔗<enum_AudioServer_PlaybackType>`
|
||||
|
||||
:ref:`PlaybackType<enum_AudioServer_PlaybackType>` **PLAYBACK_TYPE_DEFAULT** = ``0``
|
||||
|
||||
**实验性:** 未来版本中可能修改或移除该常量。
|
||||
**实验性:** 未来版本中可能会修改或移除该常量。
|
||||
|
||||
The playback will be considered of the type declared at :ref:`ProjectSettings.audio/general/default_playback_type<class_ProjectSettings_property_audio/general/default_playback_type>`.
|
||||
|
||||
@@ -246,7 +246,7 @@ The playback will be considered of the type declared at :ref:`ProjectSettings.au
|
||||
|
||||
:ref:`PlaybackType<enum_AudioServer_PlaybackType>` **PLAYBACK_TYPE_STREAM** = ``1``
|
||||
|
||||
**实验性:** 未来版本中可能修改或移除该常量。
|
||||
**实验性:** 未来版本中可能会修改或移除该常量。
|
||||
|
||||
Force the playback to be considered as a stream.
|
||||
|
||||
@@ -256,7 +256,7 @@ Force the playback to be considered as a stream.
|
||||
|
||||
:ref:`PlaybackType<enum_AudioServer_PlaybackType>` **PLAYBACK_TYPE_SAMPLE** = ``2``
|
||||
|
||||
**实验性:** 未来版本中可能修改或移除该常量。
|
||||
**实验性:** 未来版本中可能会修改或移除该常量。
|
||||
|
||||
Force the playback to be considered as a sample. This can provide lower latency and more stable playback (with less risk of audio crackling), at the cost of having less flexibility.
|
||||
|
||||
@@ -270,7 +270,7 @@ Force the playback to be considered as a sample. This can provide lower latency
|
||||
|
||||
:ref:`PlaybackType<enum_AudioServer_PlaybackType>` **PLAYBACK_TYPE_MAX** = ``3``
|
||||
|
||||
**实验性:** 未来版本中可能修改或移除该常量。
|
||||
**实验性:** 未来版本中可能会修改或移除该常量。
|
||||
|
||||
Represents the size of the :ref:`PlaybackType<enum_AudioServer_PlaybackType>` enum.
|
||||
|
||||
@@ -656,7 +656,7 @@ Represents the size of the :ref:`PlaybackType<enum_AudioServer_PlaybackType>` en
|
||||
|
||||
:ref:`bool<class_bool>` **is_stream_registered_as_sample**\ (\ stream\: :ref:`AudioStream<class_AudioStream>`\ ) :ref:`🔗<class_AudioServer_method_is_stream_registered_as_sample>`
|
||||
|
||||
**实验性:** 未来版本中可能修改或移除该方法。
|
||||
**实验性:** 未来版本中可能会修改或移除该方法。
|
||||
|
||||
If ``true``, the stream is registered as a sample. The engine will not have to register it before playing the sample.
|
||||
|
||||
@@ -698,7 +698,7 @@ If ``false``, the stream will have to be registered before playing it. To preven
|
||||
|
||||
|void| **register_stream_as_sample**\ (\ stream\: :ref:`AudioStream<class_AudioStream>`\ ) :ref:`🔗<class_AudioServer_method_register_stream_as_sample>`
|
||||
|
||||
**实验性:** 未来版本中可能修改或移除该方法。
|
||||
**实验性:** 未来版本中可能会修改或移除该方法。
|
||||
|
||||
Forces the registration of a stream as a sample.
|
||||
|
||||
@@ -863,10 +863,10 @@ Forces the registration of a stream as a sample.
|
||||
解锁音频驱动程序的主循环。(锁定后,你始终需要手动解锁它。)
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -192,7 +192,7 @@ AudioStream
|
||||
|
||||
:ref:`bool<class_bool>` **can_be_sampled**\ (\ ) |const| :ref:`🔗<class_AudioStream_method_can_be_sampled>`
|
||||
|
||||
**实验性:** 未来版本中可能修改或移除该方法。
|
||||
**实验性:** 未来版本中可能会修改或移除该方法。
|
||||
|
||||
Returns if the current **AudioStream** can be used as a sample. Only static streams can be sampled.
|
||||
|
||||
@@ -206,7 +206,7 @@ Returns if the current **AudioStream** can be used as a sample. Only static stre
|
||||
|
||||
:ref:`AudioSample<class_AudioSample>` **generate_sample**\ (\ ) |const| :ref:`🔗<class_AudioStream_method_generate_sample>`
|
||||
|
||||
**实验性:** 未来版本中可能修改或移除该方法。
|
||||
**实验性:** 未来版本中可能会修改或移除该方法。
|
||||
|
||||
Generates an :ref:`AudioSample<class_AudioSample>` based on the current stream.
|
||||
|
||||
@@ -259,10 +259,10 @@ Returns ``true`` if the stream is a collection of other streams, ``false`` other
|
||||
如果该音频流仅支持一个通道(\ *单声道*\ ),则返回 ``true``\ ;如果音频流支持两个或多个通道(\ *复调*\ ),则返回 ``false``\ 。
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -151,10 +151,10 @@ AudioStreamGenerator
|
||||
根据\ `奈奎斯特–香农采样定理 <https://zh.wikipedia.org/wiki/%E9%87%87%E6%A0%B7%E5%AE%9A%E7%90%86>`__\ ,当超过 40000 赫兹时,人类的听觉没有质量上的差别(因为大多数人最多只能听到 ~20000 赫兹,往往更少)。如果你要生成语音等音高较低的声音,则可以使用 ``32000`` 或 ``22050`` 等较低的采样率,不会降低质量。
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -130,10 +130,10 @@ AudioStreamGeneratorPlayback
|
||||
将单个音频数据帧推送到缓冲区。这通常比 C# 中的以及通过 GDExtension 编译的语言中的 :ref:`push_buffer<class_AudioStreamGeneratorPlayback_method_push_buffer>` 效率更低,但在 GDScript 中的 :ref:`push_frame<class_AudioStreamGeneratorPlayback_method_push_frame>` 的效率可能\ *更高*\ 。
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -546,10 +546,10 @@ enum **AutoAdvanceMode**: :ref:`🔗<enum_AudioStreamInteractive_AutoAdvanceMode
|
||||
设置与当前剪辑关联的 :ref:`AudioStream<class_AudioStream>`\ 。
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -33,10 +33,10 @@ AudioStreamMicrophone
|
||||
- `音频麦克风录音演示 <https://github.com/godotengine/godot-demo-projects/tree/master/audio/mic_record>`__
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -65,7 +65,7 @@ MP3 音频流驱动程序。如果要在运行时加载 MP3 文件,请参阅 :
|
||||
|
||||
.. container:: contribute
|
||||
|
||||
目前没有这个属性的描述。请帮我们\ :ref:`贡献一个 <doc_updating_the_class_reference>`\ !
|
||||
该属性目前没有描述,请帮我们\ :ref:`贡献一个 <doc_updating_the_class_reference>`\ 吧!
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
@@ -84,7 +84,7 @@ MP3 音频流驱动程序。如果要在运行时加载 MP3 文件,请参阅 :
|
||||
|
||||
.. container:: contribute
|
||||
|
||||
目前没有这个属性的描述。请帮我们\ :ref:`贡献一个 <doc_updating_the_class_reference>`\ !
|
||||
该属性目前没有描述,请帮我们\ :ref:`贡献一个 <doc_updating_the_class_reference>`\ 吧!
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
@@ -103,7 +103,7 @@ MP3 音频流驱动程序。如果要在运行时加载 MP3 文件,请参阅 :
|
||||
|
||||
.. container:: contribute
|
||||
|
||||
目前没有这个属性的描述。请帮我们\ :ref:`贡献一个 <doc_updating_the_class_reference>`\ !
|
||||
该属性目前没有描述,请帮我们\ :ref:`贡献一个 <doc_updating_the_class_reference>`\ 吧!
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
@@ -184,10 +184,10 @@ MP3 音频流驱动程序。如果要在运行时加载 MP3 文件,请参阅 :
|
||||
循环时,流开始的时间,单位为秒。
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -86,7 +86,7 @@ AudioStreamOggVorbis 类是专用于处理 Ogg Vorbis 文件格式的 :ref:`Audi
|
||||
|
||||
.. container:: contribute
|
||||
|
||||
目前没有这个属性的描述。请帮我们\ :ref:`贡献一个 <doc_updating_the_class_reference>`\ !
|
||||
该属性目前没有描述,请帮我们\ :ref:`贡献一个 <doc_updating_the_class_reference>`\ 吧!
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
@@ -105,7 +105,7 @@ AudioStreamOggVorbis 类是专用于处理 Ogg Vorbis 文件格式的 :ref:`Audi
|
||||
|
||||
.. container:: contribute
|
||||
|
||||
目前没有这个属性的描述。请帮我们\ :ref:`贡献一个 <doc_updating_the_class_reference>`\ !
|
||||
该属性目前没有描述,请帮我们\ :ref:`贡献一个 <doc_updating_the_class_reference>`\ 吧!
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
@@ -124,7 +124,7 @@ AudioStreamOggVorbis 类是专用于处理 Ogg Vorbis 文件格式的 :ref:`Audi
|
||||
|
||||
.. container:: contribute
|
||||
|
||||
目前没有这个属性的描述。请帮我们\ :ref:`贡献一个 <doc_updating_the_class_reference>`\ !
|
||||
该属性目前没有描述,请帮我们\ :ref:`贡献一个 <doc_updating_the_class_reference>`\ 吧!
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
@@ -207,10 +207,10 @@ AudioStreamOggVorbis 类是专用于处理 Ogg Vorbis 文件格式的 :ref:`Audi
|
||||
从给定文件路径创建新的 AudioStreamOggVorbis 实例。文件必须采用 Ogg Vorbis 格式。
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -201,7 +201,7 @@ AudioStreamPlayback
|
||||
|
||||
:ref:`AudioSamplePlayback<class_AudioSamplePlayback>` **get_sample_playback**\ (\ ) |const| :ref:`🔗<class_AudioStreamPlayback_method_get_sample_playback>`
|
||||
|
||||
**实验性:** 未来版本中可能修改或移除该方法。
|
||||
**实验性:** 未来版本中可能会修改或移除该方法。
|
||||
|
||||
Returns the :ref:`AudioSamplePlayback<class_AudioSamplePlayback>` associated with this **AudioStreamPlayback** for playing back the audio sample of this stream.
|
||||
|
||||
@@ -215,15 +215,15 @@ Returns the :ref:`AudioSamplePlayback<class_AudioSamplePlayback>` associated wit
|
||||
|
||||
|void| **set_sample_playback**\ (\ playback_sample\: :ref:`AudioSamplePlayback<class_AudioSamplePlayback>`\ ) :ref:`🔗<class_AudioStreamPlayback_method_set_sample_playback>`
|
||||
|
||||
**实验性:** 未来版本中可能修改或移除该方法。
|
||||
**实验性:** 未来版本中可能会修改或移除该方法。
|
||||
|
||||
Associates :ref:`AudioSamplePlayback<class_AudioSamplePlayback>` to this **AudioStreamPlayback** for playing back the audio sample of this stream.
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -65,10 +65,10 @@ AudioStreamPlaybackInteractive
|
||||
切换到剪辑(根据名称)。
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -14,13 +14,13 @@ AudioStreamPlaybackOggVorbis
|
||||
|
||||
.. container:: contribute
|
||||
|
||||
目前没有这个类的描述。请帮我们\ :ref:`贡献一个 <doc_updating_the_class_reference>`\ !
|
||||
该类目前没有描述,请帮我们\ :ref:`贡献一个 <doc_updating_the_class_reference>`\ 吧!
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -15,10 +15,10 @@ AudioStreamPlaybackPlaylist
|
||||
:ref:`AudioStreamPlaylist<class_AudioStreamPlaylist>` 使用的播放类。
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -130,10 +130,10 @@ This function returns :ref:`INVALID_ID<class_AudioStreamPlaybackPolyphonic_const
|
||||
停止某个流。\ ``stream`` 参数是由 :ref:`play_stream<class_AudioStreamPlaybackPolyphonic_method_play_stream>` 返回的整数 ID,在调用这个函数后失效。
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -16,7 +16,7 @@ AudioStreamPlaybackResampled
|
||||
|
||||
.. container:: contribute
|
||||
|
||||
目前没有这个类的描述。请帮我们\ :ref:`贡献一个 <doc_updating_the_class_reference>`\ !
|
||||
该类目前没有描述,请帮我们\ :ref:`贡献一个 <doc_updating_the_class_reference>`\ 吧!
|
||||
|
||||
.. rst-class:: classref-reftable-group
|
||||
|
||||
@@ -51,7 +51,7 @@ AudioStreamPlaybackResampled
|
||||
|
||||
.. container:: contribute
|
||||
|
||||
目前没有这个方法的描述。请帮我们\ :ref:`贡献一个 <doc_updating_the_class_reference>`\ !
|
||||
该方法目前没有描述,请帮我们\ :ref:`贡献一个 <doc_updating_the_class_reference>`\ 吧!
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
@@ -65,7 +65,7 @@ AudioStreamPlaybackResampled
|
||||
|
||||
.. container:: contribute
|
||||
|
||||
目前没有这个方法的描述。请帮我们\ :ref:`贡献一个 <doc_updating_the_class_reference>`\ !
|
||||
该方法目前没有描述,请帮我们\ :ref:`贡献一个 <doc_updating_the_class_reference>`\ 吧!
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
@@ -79,13 +79,13 @@ AudioStreamPlaybackResampled
|
||||
|
||||
.. container:: contribute
|
||||
|
||||
目前没有这个方法的描述。请帮我们\ :ref:`贡献一个 <doc_updating_the_class_reference>`\ !
|
||||
该方法目前没有描述,请帮我们\ :ref:`贡献一个 <doc_updating_the_class_reference>`\ 吧!
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -14,13 +14,13 @@ AudioStreamPlaybackSynchronized
|
||||
|
||||
.. container:: contribute
|
||||
|
||||
目前没有这个类的描述。请帮我们\ :ref:`贡献一个 <doc_updating_the_class_reference>`\ !
|
||||
该类目前没有描述,请帮我们\ :ref:`贡献一个 <doc_updating_the_class_reference>`\ 吧!
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -226,7 +226,7 @@ enum **MixTarget**: :ref:`🔗<enum_AudioStreamPlayer_MixTarget>`
|
||||
- |void| **set_mix_target**\ (\ value\: :ref:`MixTarget<enum_AudioStreamPlayer_MixTarget>`\ )
|
||||
- :ref:`MixTarget<enum_AudioStreamPlayer_MixTarget>` **get_mix_target**\ (\ )
|
||||
|
||||
The mix target channels, as one of the :ref:`MixTarget<enum_AudioStreamPlayer_MixTarget>` constants. Has no effect when two speakers or less are detected (see :ref:`SpeakerMode<enum_AudioServer_SpeakerMode>`).
|
||||
混合目标声道,使用 :ref:`MixTarget<enum_AudioStreamPlayer_MixTarget>` 常量。检测到小于等于两个扬声器时无效(见 :ref:`SpeakerMode<enum_AudioServer_SpeakerMode>`\ )。
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
@@ -260,7 +260,7 @@ The mix target channels, as one of the :ref:`MixTarget<enum_AudioStreamPlayer_Mi
|
||||
- |void| **set_playback_type**\ (\ value\: :ref:`PlaybackType<enum_AudioServer_PlaybackType>`\ )
|
||||
- :ref:`PlaybackType<enum_AudioServer_PlaybackType>` **get_playback_type**\ (\ )
|
||||
|
||||
**实验性:** 未来版本中可能修改或移除该属性。
|
||||
**实验性:** 未来版本中可能会修改或移除该属性。
|
||||
|
||||
The playback type of the stream player. If set other than to the default value, it will force that playback type.
|
||||
|
||||
@@ -352,7 +352,7 @@ The playback type of the stream player. If set other than to the default value,
|
||||
|
||||
以秒为单位返回最后播放的声音在 :ref:`AudioStream<class_AudioStream>` 中的位置。如果没有正在播放的声音,将返回 ``0.0``\ 。
|
||||
|
||||
\ **注意:**\ 返回的位置不一定精准,因为\ :ref:`AudioServer<class_AudioServer>`\ 不会在每个处理的帧中混合音频。要想得到更多准确的结果,请将\ :ref:`AudioServer.get_time_since_last_mix<class_AudioServer_method_get_time_since_last_mix>`\ 添加到返回的位置。
|
||||
\ **注意:**\ 返回的位置不一定精准,因为 :ref:`AudioServer<class_AudioServer>` 不会在每个处理的帧中混合音频。要想得到更多准确的结果,请将 :ref:`AudioServer.get_time_since_last_mix<class_AudioServer_method_get_time_since_last_mix>` 添加到返回的位置。
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
@@ -415,10 +415,10 @@ The playback type of the stream player. If set other than to the default value,
|
||||
停止该节点发出的所有声音。
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -270,7 +270,7 @@ AudioStreamPlayer2D
|
||||
- |void| **set_playback_type**\ (\ value\: :ref:`PlaybackType<enum_AudioServer_PlaybackType>`\ )
|
||||
- :ref:`PlaybackType<enum_AudioServer_PlaybackType>` **get_playback_type**\ (\ )
|
||||
|
||||
**实验性:** 未来版本中可能修改或移除该属性。
|
||||
**实验性:** 未来版本中可能会修改或移除该属性。
|
||||
|
||||
The playback type of the stream player. If set other than to the default value, it will force that playback type.
|
||||
|
||||
@@ -419,10 +419,10 @@ The playback type of the stream player. If set other than to the default value,
|
||||
停止音频。
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -486,7 +486,7 @@ enum **DopplerTracking**: :ref:`🔗<enum_AudioStreamPlayer3D_DopplerTracking>`
|
||||
- |void| **set_playback_type**\ (\ value\: :ref:`PlaybackType<enum_AudioServer_PlaybackType>`\ )
|
||||
- :ref:`PlaybackType<enum_AudioServer_PlaybackType>` **get_playback_type**\ (\ )
|
||||
|
||||
**实验性:** 未来版本中可能修改或移除该属性。
|
||||
**实验性:** 未来版本中可能会修改或移除该属性。
|
||||
|
||||
The playback type of the stream player. If set other than to the default value, it will force that playback type.
|
||||
|
||||
@@ -652,10 +652,10 @@ The playback type of the stream player. If set other than to the default value,
|
||||
停止音频。
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -12,7 +12,7 @@ AudioStreamPlaylist
|
||||
|
||||
**继承:** :ref:`AudioStream<class_AudioStream>` **<** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
|
||||
|
||||
:ref:`AudioStream<class_AudioStream>` that includes sub-streams and plays them back like a playlist.
|
||||
:ref:`AudioStream<class_AudioStream>` 包含子音频流并像播放列表一样播放它们。
|
||||
|
||||
.. rst-class:: classref-reftable-group
|
||||
|
||||
@@ -102,7 +102,7 @@ AudioStreamPlaylist
|
||||
- |void| **set_loop**\ (\ value\: :ref:`bool<class_bool>`\ )
|
||||
- :ref:`bool<class_bool>` **has_loop**\ (\ )
|
||||
|
||||
If ``true``, the playlist will loop, otherwise the playlist will end when the last stream is finished.
|
||||
如果为 ``true``\ ,则播放列表将循环播放,否则播放列表将在播放完最后一个音频流时结束。
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
@@ -119,7 +119,7 @@ If ``true``, the playlist will loop, otherwise the playlist will end when the la
|
||||
- |void| **set_shuffle**\ (\ value\: :ref:`bool<class_bool>`\ )
|
||||
- :ref:`bool<class_bool>` **get_shuffle**\ (\ )
|
||||
|
||||
If ``true``, the playlist will shuffle each time playback starts and each time it loops.
|
||||
如果为 ``true``\ ,则每次播放开始和循环时,播放列表都会随机播放。
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
@@ -153,7 +153,7 @@ If ``true``, the playlist will shuffle each time playback starts and each time i
|
||||
|
||||
:ref:`float<class_float>` **get_bpm**\ (\ ) |const| :ref:`🔗<class_AudioStreamPlaylist_method_get_bpm>`
|
||||
|
||||
Returns the BPM of the playlist, which can vary depending on the clip being played.
|
||||
返回播放列表的 BPM(每分钟节拍数),该值可能根据正在播放的剪辑而变化。
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
@@ -165,7 +165,7 @@ Returns the BPM of the playlist, which can vary depending on the clip being play
|
||||
|
||||
:ref:`AudioStream<class_AudioStream>` **get_list_stream**\ (\ stream_index\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_AudioStreamPlaylist_method_get_list_stream>`
|
||||
|
||||
Returns the stream at playback position index.
|
||||
返回播放位置索引处的音频流。
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
@@ -177,13 +177,13 @@ Returns the stream at playback position index.
|
||||
|
||||
|void| **set_list_stream**\ (\ stream_index\: :ref:`int<class_int>`, audio_stream\: :ref:`AudioStream<class_AudioStream>`\ ) :ref:`🔗<class_AudioStreamPlaylist_method_set_list_stream>`
|
||||
|
||||
Sets the stream at playback position index.
|
||||
设置播放位置索引处的音频流。
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
@@ -58,10 +58,10 @@ AudioStream 允许用户随时通过代码,同时使用单个播放器播放
|
||||
可以同时播放的流的最大数量。
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
||||
.. |const| replace:: :abbr:`const (本方法没有副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
||||
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
||||
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
||||
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`
|
||||
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
||||
.. |void| replace:: :abbr:`void (无返回值。)`
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user