public static bool Prefix(ref string __result, ref FaceGenPropertyVM __instance) { TextObject nameObj = ReflectUtils.ReflectField <TextObject>("_nameObj", __instance); float value = ReflectUtils.ReflectField <float>("_value", __instance); if (null != nameObj) { __result = string.Format("{0}({1})", nameObj.ToString(), value.ToString("F2")); } return(false); }
public static void SetValuePostfix(FaceGenPropertyVM __instance) { __instance.RefreshValues(); }
public static void RefreshValuesPostfix(FaceGenPropertyVM __instance) { __instance.Name = $"{__instance.Name}\n{__instance.Value}"; }
public static void Postfix(ref FaceGenPropertyVM __instance) { __instance.OnPropertyChanged("Name"); }