Click or drag to resize

StreamPeerGetVar Method

Gets a Variant from the stream. If allow_objects is true, decoding objects is allowed.

Warning: Deserialized objects can contain code which gets executed. Do not use this option if the serialized object comes from untrusted sources to avoid potential security threats such as remote code execution.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public Object GetVar(
	bool allowObjects = false
)

Parameters

allowObjects (Optional)
Type: SystemBoolean

[Missing <param name="allowObjects"/> documentation for "M:Godot.StreamPeer.GetVar(System.Boolean)"]

Return Value

Type: Object

[Missing <returns> documentation for "M:Godot.StreamPeer.GetVar(System.Boolean)"]

See Also