Eonirr

Untitled

Jan 20th, 2026 (edited)
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. var action = playerInput.actions["Move"];
  2.  
  3. for (int i = 0; i < action.bindings.Count; i++)
  4. {
  5. var binding = action.bindings[i];
  6.  
  7. if (binding.isComposite || binding.isPartOfComposite)
  8. continue;
  9.  
  10. if (!binding.path.Contains("Keyboard"))
  11. continue;
  12.  
  13. string display = InputControlPath.ToHumanReadableString(
  14. binding.path,
  15. InputControlPath.HumanReadableStringOptions.OmitDevice
  16. );
  17.  
  18. Debug.Log(display);
  19. testText.text = display;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment