Class TypeUtils
Assembly: Xareus.Unity.Utils.dll
Syntax
public static class TypeUtils
Methods
GetUnityFields(Type)
Get all instance fields including private/protected fields marked with SerializeField from parent classes, with caching
Declaration
public static IEnumerable<FieldInfo> GetUnityFields(this Type type)
Parameters
| Type |
Name |
Description |
| Type |
type |
|
Returns
GetUnityFieldsOfType(Type, Type)
Get all instance fields from the given type including private/protected fields marked with SerializeField from parent classes, with caching
Declaration
public static IEnumerable<FieldInfo> GetUnityFieldsOfType(this Type type, Type fieldType)
Parameters
| Type |
Name |
Description |
| Type |
type |
|
| Type |
fieldType |
|
Returns