Click or drag to resize

PacketPeerGetVar Method

Gets a Variant. If allow_objects (or AllowObjectDecoding) 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.PacketPeer.GetVar(System.Boolean)"]

Return Value

Type: Object

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

See Also