This method is executed when the runtime user changes the value of the UI element. This method should change the field on the actual target respectively.
Implements AVR.UI.Link.AVRUI_Link.
Definition at line 42 of file AVRUI_Link_Inputfield.cs.
45 if (
input.isFocused)
return;
48 string text = input.text;
54 case MemberType.FIELD:
57 System.Convert.ChangeType(text, target.GetType().GetField(
field).FieldType)
61 case MemberType.PROPERTY:
63 target.GetType().GetProperty(
field).SetValue(
target,
64 System.Convert.ChangeType(text, target.GetType().GetProperty(
field).PropertyType)
70 catch(System.Exception) {
71 AVR_DevConsole.cwarn(
"Could not update the given target value to "+text,
this);