у меня фейлится с
The type `T' must have a public parameterless constructor in order to use it as parameter `T' in the generic type or method
Я добавлял к примеру
using UnityEngine;
using UnityEditor;
using System.Collections;
using System.Reflection;
using System.ComponentModel;
using System.Collections.Generic;
using System;
и
public static string SplitCamelCase(string input)
{
return System.Text.RegularExpressions.Regex.Replace(input, "([A-Z])", " $1", System.Text.RegularExpressions.RegexOptions.Compiled).Trim();
}