Change return type of "_Set" method in csharp code example
Add "return false" to GDScript code example of _Set method
(cherry picked from commit 458cb99966
)
This commit is contained in:
parent
7f2ebc2389
commit
f2dd4086b7
|
@ -219,6 +219,7 @@
|
||||||
# Storing the value in the fake property.
|
# Storing the value in the fake property.
|
||||||
internal_data["fake_property"] = value
|
internal_data["fake_property"] = value
|
||||||
return true
|
return true
|
||||||
|
return false
|
||||||
|
|
||||||
func _get_property_list():
|
func _get_property_list():
|
||||||
return [
|
return [
|
||||||
|
@ -228,7 +229,7 @@
|
||||||
[csharp]
|
[csharp]
|
||||||
private Godot.Collections.Dictionary _internalData = new Godot.Collections.Dictionary();
|
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")
|
if (property == "FakeProperty")
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue