Skip to content

Commit 55b4cfa

Browse files
Update InputActionImporterEditor.cs
1 parent 4a7eb48 commit 55b4cfa

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Packages/com.unity.inputsystem/InputSystem/Editor/AssetImporter/InputActionImporterEditor.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ private void BuildCodeGenerationSection(VisualElement root, InputActionAsset inp
119119

120120
var pathField = new TextField("C# Class File") { bindingPath = "m_WrapperCodePath" };
121121
pathField.style.flexGrow = 1;
122+
pathField.AddToClassList(BaseField<string>.alignedFieldUssClassName);
122123
SetupPlaceholder(pathField, defaultFileName);
123124
pathRow.Add(pathField);
124125

@@ -150,6 +151,7 @@ private void BuildCodeGenerationSection(VisualElement root, InputActionAsset inp
150151
: null;
151152

152153
var classNameField = new TextField("C# Class Name") { bindingPath = "m_WrapperClassName" };
154+
classNameField.AddToClassList(BaseField<string>.alignedFieldUssClassName);
153155
SetupPlaceholder(classNameField, typeName ?? "<Class name>");
154156
codeGenContainer.Add(classNameField);
155157

@@ -168,6 +170,7 @@ private void BuildCodeGenerationSection(VisualElement root, InputActionAsset inp
168170

169171
// Namespace
170172
var namespaceField = new TextField("C# Class Namespace") { bindingPath = "m_WrapperCodeNamespace" };
173+
namespaceField.AddToClassList(BaseField<string>.alignedFieldUssClassName);
171174
SetupPlaceholder(namespaceField, "<Global namespace>");
172175
codeGenContainer.Add(namespaceField);
173176

0 commit comments

Comments
 (0)