1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-07 19:53:17 +00:00

Merge pull request #96021 from jwodicka/jwodicka-docfix

Fix C# code example for `Object._get_property_list`
This commit is contained in:
Rémi Verschelde
2024-08-26 22:45:45 +02:00

View File

@@ -136,7 +136,7 @@
}
}
private List<int> _numbers = new();
private Godot.Collections.Array<int> _numbers = new();
public override Godot.Collections.Array<Godot.Collections.Dictionary> _GetPropertyList()
{
@@ -173,7 +173,7 @@
if (propertyName.StartsWith("number_"))
{
int index = int.Parse(propertyName.Substring("number_".Length));
numbers[index] = value.As<int>();
_numbers[index] = value.As<int>();
return true;
}
return false;