Exemple #1
0
 public static void Postfix(REPropertySet __instance, FieldInfo targetField, object target)
 {
     if (__instance is REEnumSet enumSet)
     {
         Type enumType  = targetField.FieldType;
         var  enumType2 = HintExtension.GetMappedEnumWithHints(enumType);
         if (HasHint(enumType2))
         {
             var panel = enumSet.GetComponentInChildren <UIPanel>();
             panel.objectUserData = new EnumSetHint(enumSet);
         }
     }
 }
 public static object GetTarget(this REPropertySet instance) =>
 ReflectionHelpers.GetFieldValue(instance, "m_Target");
 public static FieldInfo GetTargetField(this REPropertySet instance) =>
 ReflectionHelpers.GetFieldValue(instance, "m_TargetField") as FieldInfo;