From 97cf2c147e42ac44092d22538fb6f2748a8b4584 Mon Sep 17 00:00:00 2001 From: Jason Wodicka Date: Fri, 23 Aug 2024 17:52:00 -0700 Subject: [PATCH] Fix C# code example for Object._get_property_list There were two small errors in this code example that kept it from working when copied to a new node locally. These are the fixes I used locally to test the example. --- doc/classes/Object.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/classes/Object.xml b/doc/classes/Object.xml index ed420f4587d..0cfa3a5d4a0 100644 --- a/doc/classes/Object.xml +++ b/doc/classes/Object.xml @@ -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;