Click or drag to resize

ObjectSet Method

Assigns a new value to the given property. If the property does not exist, nothing will happen.

Note: 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).

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public void Set(
	string property,
	Object value
)

Parameters

property
Type: SystemString

[Missing <param name="property"/> documentation for "M:Godot.Object.Set(System.String,System.Object)"]

value
Type: SystemObject

[Missing <param name="value"/> documentation for "M:Godot.Object.Set(System.String,System.Object)"]

See Also