Method is run continously from OnGUI. This method should update the value displayed by the UI when the target value changes.
Implements AVR.UI.Link.AVRUI_Link.
Definition at line 77 of file AVRUI_Link_Inputfield.cs.
80 if(
input.isFocused)
return;
84 object current_value = null;
88 case MemberType.FIELD:
90 current_value = target.GetType().GetField(
field).GetValue(
target);
93 case MemberType.PROPERTY:
95 current_value = target.GetType().GetProperty(
field).GetValue(
target);
100 input.text = current_value.ToString();
103 if(
old_value!=current_value.ToString() && !Application.isPlaying) {
104 EditorUtility.SetDirty(
input);
109 catch(System.Exception) { }