Merge pull request #83602 from copytime/patch-1

Doc: Change return type of `_Set` method from `void` to `bool` in C# code example
This commit is contained in:
Rémi Verschelde 2023-10-20 15:09:51 +02:00
commit 34e3fa5ec7
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -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")
{