Skip to main content

Class InputActionBindingUI

Provides a UI component to display and rebind a specific InputAction binding at runtime. Shows the current binding path and action name (optional), and updates the display when settings change.

public class InputActionBindingUI : MonoBehaviour

Inheritance​

Properties​

actionReference​

Gets or sets the InputActionReference being controlled.

public InputActionReference actionReference { get; set; }

Property Value​

InputActionReference

bindingId​

Gets or sets the ID of the binding to display and rebind.

public string bindingId { get; set; }

Property Value​

string

displayStringOptions​

Gets or sets the display string options for formatting the binding text.

public InputBinding.DisplayStringOptions displayStringOptions { get; set; }

Property Value​

InputBinding.DisplayStringOptions

Methods​

OnValidate()​

protected void OnValidate()

UpdateBindingDisplay()​

Refreshes the displayed binding string based on the current action, binding ID, and display options.

public void UpdateBindingDisplay()
  • Properties
    • actionReference
    • bindingId
    • displayStringOptions
  • Methods
    • OnValidate()
    • UpdateBindingDisplay()