浏览代码

Fix nested typed arrays being claimed as supported in GDScript reference

Hugo Locurcio 2 年之前
父节点
当前提交
696f746dff
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      tutorials/scripting/gdscript/gdscript_exports.rst

+ 3 - 1
tutorials/scripting/gdscript/gdscript_exports.rst

@@ -273,7 +273,9 @@ Exported arrays can specify type (using the same hints as before).
 ::
 ::
 
 
     @export var ints: Array[int] = [1, 2, 3]
     @export var ints: Array[int] = [1, 2, 3]
-    @export var two_dimensional: Array[Array[float]] = [[1.0, 2.0], [3.0, 4.0]]
+
+    # Nested typed arrays such as `Array[Array[float]]` are not supported yet.
+    @export var two_dimensional: Array[Array] = [[1.0, 2.0], [3.0, 4.0]]
 
 
 You can omit the default value, but it would then be ``null`` if not assigned.
 You can omit the default value, but it would then be ``null`` if not assigned.