Skip to content

Commit b19428e

Browse files
FIX: Remove errors when using UITK Asset Editor (ISX-1531) (#1723)
This avoids a breaking API change for the InputParameterEditor class. Developers need to override this method to implement a custom UI for UITK Asset Editor.
1 parent fda8b4b commit b19428e

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

Packages/com.unity.inputsystem/InputSystem/Editor/InputParameterEditor.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,17 @@ internal override void SetTarget(object target)
182182
OnEnable();
183183
}
184184

185+
#if UNITY_INPUT_SYSTEM_UI_TK_ASSET_EDITOR
186+
/// <summary>
187+
/// Default stub implementation of <see cref="InputParameterEditor.OnDrawVisualElements"/>.
188+
/// Should be overridden to create the desired UI.
189+
/// </summary>
190+
public override void OnDrawVisualElements(VisualElement root, Action onChangedCallback)
191+
{
192+
}
193+
194+
#endif
195+
185196
/// <summary>
186197
/// Helper for parameters that have defaults (usually from <see cref="InputSettings"/>).
187198
/// </summary>

0 commit comments

Comments
 (0)