public static string InnerStructObjectToString(Type type, object value) { if (type == typeof(Rect)) { return(RectToString((Rect)value)); } else if (type == typeof(RectInt)) { return(RectIntToString((RectInt)value)); } else if (type == typeof(ColorBlock)) { return(ColorBlockToString((ColorBlock)value)); } else if (type == typeof(Vector2)) { return(ParamAnalysisTool.Vector2ToString((Vector2)value)); } else if (type == typeof(Vector2Int)) { return(ParamAnalysisTool.Vector2IntToString((Vector2Int)value)); } else if (type == typeof(Vector3)) { return(ParamAnalysisTool.Vector3ToString((Vector3)value)); } else if (type == typeof(Vector2Int)) { return(ParamAnalysisTool.Vector3IntToString((Vector3Int)value)); } else if (type == typeof(Vector4)) { return(ParamAnalysisTool.Vector4ToString((Vector4)value)); } return(null); }