Click or drag to resize

VisualScriptAddVariable Method

Add a variable to the VisualScript, optionally giving it a default value or marking it as exported.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public void AddVariable(
	string name,
	Object defaultValue = null,
	bool export = false
)

Parameters

name
Type: SystemString

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

defaultValue (Optional)
Type: SystemObject

[Missing <param name="defaultValue"/> documentation for "M:Godot.VisualScript.AddVariable(System.String,System.Object,System.Boolean)"]

export (Optional)
Type: SystemBoolean

[Missing <param name="export"/> documentation for "M:Godot.VisualScript.AddVariable(System.String,System.Object,System.Boolean)"]

See Also