/// <summary> /// 绑定属性 /// </summary> /// <typeparam name="V"></typeparam> /// <param name="input"></param> /// <param name="property"></param> /// <param name="converter"></param> /// <returns></returns> public static Binding <string, V> Bind <V>(this InputField input, EventProperty <V> property, IValueConverter <string, V> converter) { var binding = input.GetEventText().Bind(property, converter); input.gameObject.GetCallbacks().onDestroy += binding.Unbind; return(binding); }