Explorar o código

DOCS: Object.set() does nothing on type mismatch

(cherry picked from commit bb7d00388106920393e6140e9d26f3c047e12433)
Max Hilbrunner %!s(int64=3) %!d(string=hai) anos
pai
achega
6ce71b78a7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      doc/classes/Object.xml

+ 1 - 1
doc/classes/Object.xml

@@ -340,7 +340,7 @@
 			<argument index="0" name="property" type="String" />
 			<argument index="1" name="value" type="Variant" />
 			<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).
 			</description>
 		</method>