Merge pull request #57540 from mhilbrunner/docs-object-set

DOCS: Object.set() does nothing on type mismatch
This commit is contained in:
Max Hilbrunner 2022-02-02 16:31:26 +01:00 committed by GitHub
commit 68e62fb5cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -490,7 +490,7 @@
<argument index="0" name="property" type="String" /> <argument index="0" name="property" type="String" />
<argument index="1" name="value" type="Variant" /> <argument index="1" name="value" type="Variant" />
<description> <description>
Assigns a new value to the given property. If the [code]property[/code] does not exist, nothing will happen. Assigns a new value to the given property. If the [code]property[/code] does not exist or the given value's type doesn't match, nothing will happen.
[b]Note:[/b] In C#, the property name must be specified as snake_case if it is defined by a built-in Godot node. This doesn't apply to user-defined properties where you should use the same convention as in the C# source (typically PascalCase). [b]Note:[/b] In C#, the property name must be specified as snake_case if it is defined by a built-in Godot node. This doesn't apply to user-defined properties where you should use the same convention as in the C# source (typically PascalCase).
</description> </description>
</method> </method>