public static bool TryPastePosition(out Vector3 v) { v = default(Vector3); bool hasData = false; var clipboardObj = Clipboard.GetDataObject(); if (!(hasData |= ParsingUtilities.TryParseVector3(clipboardObj.GetData(DataFormats.Text) as string, out v))) { if (Clipboard.GetData("Position") is Vector3 dataVector) { hasData = true; v = dataVector; } } return(hasData); }