protected override void OnViewModelBound() { base.OnViewModelBound(); // Folder Path _importPathField.BindTo(ViewModel.FolderPath); _browseButton.onClick.AddListener(BrowseButtonClicked); _scanSubDirsToggle.BindTo(ViewModel.ScanSubDirectories); // Tags _tagsField.BindTo(ViewModel.Tags); // Auto Rotate _rotateFilesToggle.BindTo(ViewModel.RotateOnImport); (_xRotationField, _yRotationField, _zRotationField).BindTo(ViewModel.Rotation); // Auto Scale _scaleFilesToggle.BindTo(ViewModel.ScaleOnImport); (_xScaleField, _yScaleField, _zScaleField).BindTo(ViewModel.Scale); }
protected override void OnViewModelBound() { base.OnViewModelBound(); _nameInput.BindTo(ViewModel.Name); }
protected override void OnViewModelBound() { base.OnViewModelBound(); _aliasField.BindTo(ViewModel.Alias); }