Class TypeUtility
Utility class around Type.
Namespace: Unity.Properties.Editor
Syntax
public static class TypeUtility
Methods
GetRootType(Type)
Utility method to return the base type.
Declaration
public static Type GetRootType(this Type type)
Parameters
Type | Name | Description |
---|---|---|
Type | type | The Type for which we want the base type. |
Returns
Type | Description |
---|---|
Type | The base type. |
GetTypeDisplayName(Type)
Utility method to get the name of a type which includes the parent type(s).
Declaration
public static string GetTypeDisplayName(Type type)
Parameters
Type | Name | Description |
---|---|---|
Type | type | The Type we want the name of. |
Returns
Type | Description |
---|---|
String | The display name of the type. |