15 lines
319 B
C#
15 lines
319 B
C#
|
#if UNITY_EDITOR
|
|||
|
using System;
|
|||
|
using System.Reflection;
|
|||
|
|
|||
|
namespace GSpawn
|
|||
|
{
|
|||
|
public static class ReflectionEx
|
|||
|
{
|
|||
|
public static FieldInfo[] getPrivateInstanceFields(Type classType)
|
|||
|
{
|
|||
|
return classType.GetFields(BindingFlags.NonPublic | BindingFlags.Instance);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
#endif
|