瀏覽代碼

Merge pull request #20918 from Fluffel/document_tween_branch

[DOCS] get_indexed, tween
Rémi Verschelde 7 年之前
父節點
當前提交
369e54603e
共有 2 個文件被更改,包括 3 次插入1 次删除
  1. 2 0
      doc/classes/Object.xml
  2. 1 1
      doc/classes/Tween.xml

+ 2 - 0
doc/classes/Object.xml

@@ -184,6 +184,8 @@
 			<argument index="0" name="property" type="NodePath">
 			</argument>
 			<description>
+				Get indexed object property by String.
+				Property indices get accessed with colon seperation, for example: [code]position:x[/code]
 			</description>
 		</method>
 		<method name="get_instance_id" qualifiers="const">

+ 1 - 1
doc/classes/Tween.xml

@@ -170,7 +170,7 @@
 			<argument index="7" name="delay" type="float" default="0">
 			</argument>
 			<description>
-				Animates [code]property[/code] of [code]object[/code] from [code]initial_val[/code] to [code]final_val[/code] for [code]duration[/code] seconds, [code]delay[/code] seconds later.
+				Animates [code]property[/code] of [code]object[/code] from [code]initial_val[/code] to [code]final_val[/code] for [code]duration[/code] seconds, [code]delay[/code] seconds later. Setting the initial value to [code]null[/code] uses the current value of the property.
                 Use [enum TransitionType] for [code]trans_type[/code] and [enum EaseType] for [code]ease_type[/code] parameters. These values control the timing and direction of the interpolation. See the class description for more information
 			</description>
 		</method>