Skip to content

Commit bff9e60

Browse files
committed
remove debug log
1 parent 9dc97d8 commit bff9e60

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Packages/com.unity.inputsystem/InputSystem/Editor/ControlPicker/InputControlPathEditor.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ public InputControlPathEditor(SerializedProperty pathProperty, InputControlPicke
3030
{
3131
if (pathProperty == null)
3232
throw new ArgumentNullException(nameof(pathProperty));
33-
Debug.Log($"New Path Property on {pathProperty.serializedObject.targetObject.GetInstanceID()}");
33+
// Update the static pathProperty variable to the most recent serializedProperty.
34+
// See comment on pathProperty for more information.
3435
InputControlPathEditor.pathProperty = pathProperty;
3536
this.onModified = onModified;
3637
m_PickerState = pickerState ?? new InputControlPickerState();
@@ -185,6 +186,7 @@ private void SetExpectedControlLayoutFromAttribute(SerializedProperty property)
185186

186187
// This static variable is a hack. Because the editor is rebuilt at unpredictable times with a new serializedObject, we need to keep updating
187188
// This variable with most up to date serializedProperty, so that the picker dropdown can access the correct serializedProperty.
189+
// This variable with most up to date serializedProperty, so that the picker dropdown can access the correct serializedProperty.
188190
// The picker dropdown is a separate window and does not have access to the changed serializedObject reference.
189191
// This is a temporary solution until the InputControlPathEditor is converted to UITK or there is away to have a stable, persistent serializedObject backing this editor.
190192
// This property will be shared among multiple asset editor windows.

0 commit comments

Comments
 (0)