瀏覽代碼

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)

CopyTIME 1 年之前
父節點
當前提交
f2dd4086b7
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      doc/classes/Object.xml

+ 2 - 1
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")
 				    {