TypeUtility
Available methods
public static Type GetTypeByName(string name)private void InstantiateSystem()
{
var scriptType = TypeUtility.GetTypeByName(className);
if (scriptType != null)
{
// Create a new GameObject and add the script as a component
GameObject newObject = new GameObject(className);
newObject.AddComponent(scriptType);
AssetDatabase.Refresh();
}
}Last updated