# TypeUtility

This class provides functionality for getting Type by given type name presented by string.

### Available methods

```csharp
public static Type GetTypeByName(string name)
```

_This method returns Type by given string **name.** If type wasn't found in assembly, it returns **null**._

_Example:_

```csharp
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();
    }
}
```
