Merge pull request #96021 from jwodicka/jwodicka-docfix
Fix C# code example for `Object._get_property_list`
This commit is contained in:
commit
4a947f0811
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue