private void BindTarget_OnChanged(ObservableProperty property, object source) { if (source == (object)this) { return; } inputField.text = property.AsString(); }
private void BindTarget_OnChanged(ObservableProperty property, object source) { if (source == (object)this) { return; } var newValue = property.AsString(); int index = System.Array.IndexOf(property.Choices, newValue); dropdown.value = index; }
private void BindTarget_OnChanged(ObservableProperty property, object source) { if (source == (object)this) { return; } if (TextFormatter != null) { label.text = TextFormatter(property.Value); } else if (!string.IsNullOrEmpty(formatString)) { label.text = string.Format(formatString, property.Value); } else { label.text = property.AsString(); } }
private void AudioCard_OnChanged(ObservableProperty arg1, object source) { var s = arg1.AsString(); }