public static T GetAttribute <T>(this SerializedProperty property) where T : Attribute { return(ReflectionUtility.GetField(GetTargetObject(property), property.name).GetCustomAttribute <T>(true)); }
public static T[] GetAttributes <T>(this SerializedProperty property) where T : Attribute { FieldInfo fieldInfo = ReflectionUtility.GetField(GetTargetObject(property), property.name); return((T[])fieldInfo.GetCustomAttributes(typeof(T), true)); }