public static void MouseManager.SetMousePos(string reason, Vector3 destination, bool actualymove = true)
Move the mouse to a specific location using world position (position of game objects) This method take care of converting the world position accounting for the current camera zoom and rotation, to screen position.
voidNo return value.Parameters
reason- Parameter type:
stringNo current DPB page is linked for this built-in, external, generic or compatibility-only type.The reason of of the move, usually used for debugging purpose.
destination- Parameter type:
Vector3the position where to move the mouse.
actualymove- Parameter type:
boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.Deprecated, this is always true.
DPB2 0.4.5.91 rejects non-finite coordinates with ArgumentOutOfRangeException. A saved world position is not proof that its area is still current; reacquire targets after travel and abort the pending action on failure.