From f2dd4086b7e0d71a6d29529a01a6386b1d4b0847 Mon Sep 17 00:00:00 2001 From: CopyTIME Date: Thu, 19 Oct 2023 13:03:40 +0800 Subject: [PATCH] Change return type of "_Set" method in csharp code example Add "return false" to GDScript code example of _Set method (cherry picked from commit 458cb99966663e4db23cc8246c2493998e5ceba1) --- doc/classes/Object.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/classes/Object.xml b/doc/classes/Object.xml index ea0e2eb26fe..c252a1083e4 100644 --- a/doc/classes/Object.xml +++ b/doc/classes/Object.xml @@ -219,6 +219,7 @@ # Storing the value in the fake property. internal_data["fake_property"] = value return true + return false func _get_property_list(): return [ @@ -228,7 +229,7 @@ [csharp] private Godot.Collections.Dictionary _internalData = new Godot.Collections.Dictionary(); - public override void _Set(StringName property, Variant value) + public override bool _Set(StringName property, Variant value) { if (property == "FakeProperty") {