Is there a way that a on-screen stick (Unity Input System) doesn’t snap back to its original position on pointer up?
SOLVED
Sorry, noob-question!
Just don’t use the original OnScreenStick script, but make a copy and adjust OnPointerUp there. Something like this:
Original:
public void OnPointerUp(PointerEventData eventData)
{
((RectTransform)transform).anchoredPosition = m_StartPos;
SendValueToControl(Vector2.zero);
}
Adaption:
public void OnPointerUp(PointerEventData eventData)
{
// do nothing
}