Пример #1
0
        private void UpdateNameField(CreateAssetStrategy entry)
        {
            var defaultFileName = entry != null
                ? Path.ChangeExtension(entry.DefaultFileName, entry.FileExtension)
                : "";

            _fileNameField.SetValueWithoutNotify(
                string.IsNullOrWhiteSpace(_fileName) ? defaultFileName : _fileName);
        }
Пример #2
0
 private void UpdateDetailsSection(CreateAssetStrategy entry)
 {
     _details.ToggleDisplayStyle(entry != null);
     _description.text = entry?.Description;
     _typeName.text    = entry?.AssetType?.Name ?? "";
 }