I’m trying to create a list of input actions, but when adding a new element to the list
it’s “bound” to the existing element (the first on the list), and any change made to it
is reflected on all the items.
I tried to create elements with different names in the script (as I thought that
was the problem) and they are created with the name of first element, like if a “copy”.
Like so:
public List<InputAction> Inputs = new List<InputAction>() {
new InputAction("ActionA"),
new InputAction("ActionB"),
};
The result was:

I even tried GUIDs, and creating the items outside the inspector by code
and the problem persists. Every new item created is a copy of the first.
Anyone had the same problem or could help me understand if that is not possible
(I can’t see why, as you can create separate InputAction variables and they work fine)
or probably a bug.
Thanks in advance!