Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@
////TODO: add ability to query which device was last used with any of the actions
////REVIEW: also give access to the last/current UI event?

////TODO: ToString() method a la PointerInputModule

namespace UnityEngine.InputSystem.UI
{
/// <summary>
Expand Down Expand Up @@ -2616,6 +2614,22 @@ public InputActionAsset actionsAsset
}
}

public override string ToString()
{
System.Text.StringBuilder stringBuilder = new System.Text.StringBuilder("<b>Pointer Input Module of type: </b>" + (object) this.GetType());
stringBuilder.AppendLine();

foreach (PointerModel keyValuePair in this.m_PointerStates)
{
if (keyValuePair.eventData != null)
{
stringBuilder.AppendLine("<B>Pointer:</b> " + (object) keyValuePair.screenPosition);
stringBuilder.AppendLine(keyValuePair.eventData.ToString());
}
}
return stringBuilder.ToString();
}

[SerializeField, HideInInspector] private InputActionAsset m_ActionsAsset;
[SerializeField, HideInInspector] private InputActionReference m_PointAction;
[SerializeField, HideInInspector] private InputActionReference m_MoveAction;
Expand Down