feat: updated engine version to 4.4-rc1
This commit is contained in:
parent
ee00efde1f
commit
21ba8e33af
5459 changed files with 1128836 additions and 198305 deletions
|
|
@ -7,7 +7,7 @@
|
|||
When packing nested containers using [PackedDataContainer], they are recursively packed into [PackedDataContainerRef] (only applies to [Array] and [Dictionary]). Their data can be retrieved the same way as from [PackedDataContainer].
|
||||
[codeblock]
|
||||
var packed = PackedDataContainer.new()
|
||||
packed.pack([1, 2, 3, ["abc", "def"], 4, 5, 6])
|
||||
packed.pack([1, 2, 3, ["nested1", "nested2"], 4, 5, 6])
|
||||
|
||||
for element in packed:
|
||||
if element is PackedDataContainerRef:
|
||||
|
|
@ -15,16 +15,17 @@
|
|||
print("::", subelement)
|
||||
else:
|
||||
print(element)
|
||||
|
||||
# Prints:
|
||||
# 1
|
||||
# 2
|
||||
# 3
|
||||
# ::abc
|
||||
# ::def
|
||||
# 4
|
||||
# 5
|
||||
# 6
|
||||
[/codeblock]
|
||||
Prints:
|
||||
[codeblock lang=text]
|
||||
1
|
||||
2
|
||||
3
|
||||
::nested1
|
||||
::nested2
|
||||
4
|
||||
5
|
||||
6
|
||||
[/codeblock]
|
||||
</description>
|
||||
<tutorials>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue