瀏覽代碼

Merge pull request #3514 from wrrwrr111/master

correct mistake of the document about Animation
Chris Bradfield 5 年之前
父節點
當前提交
a88563adea
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      classes/class_animation.rst

+ 1 - 1
classes/class_animation.rst

@@ -24,7 +24,7 @@ An Animation resource contains data used to animate everything in the engine. An
     # 100 pixels in 1 second.
     var animation = Animation.new()
     var track_index = animation.add_track(Animation.TYPE_VALUE)
-    animation.track_set_path(track_index, "Enemy:position.x")
+    animation.track_set_path(track_index, "Enemy:position:x")
     animation.track_insert_key(track_index, 0.0, 0)
     animation.track_insert_key(track_index, 0.5, 100)