static bool ParseVector3(string literal, ref int from, ref Vector3 result) { if (!ParseDecimal(literal, ref from, ref result.x) || !ParseDecimal(literal, ref from, ref result.y) || !ParseDecimal(literal, ref from, ref result.z)) { Debug.LogWarning("Parsing '" + literal + "' as Vector3 failed; skipping the rest."); return false; } return true; }