Click or drag to resize

InputEventXformedBy Method

Returns a copy of the given input event which has been offset by local_ofs and transformed by xform. Relevant for events of type InputEventMouseButton, InputEventMouseMotion, InputEventScreenTouch, InputEventScreenDrag, InputEventMagnifyGesture and InputEventPanGesture.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public InputEvent XformedBy(
	Transform2D xform,
	Vector2? localOfs = null
)

Parameters

xform
Type: GodotTransform2D

[Missing <param name="xform"/> documentation for "M:Godot.InputEvent.XformedBy(Godot.Transform2D,System.Nullable{Godot.Vector2})"]

localOfs (Optional)
Type: SystemNullableVector2
If the parameter is null, then the default value is new Vector2(0, 0)

Return Value

Type: InputEvent

[Missing <returns> documentation for "M:Godot.InputEvent.XformedBy(Godot.Transform2D,System.Nullable{Godot.Vector2})"]

See Also