By default this script doesn’t reset “defaultActions” or “s_InputActionReferenceCounts”, leading to an error.
![]()
Both fields are private and the script uses methods marked as internal, so can’t fix it by making my own copy. Currently have to put this in the script directly.
[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.SubsystemRegistration)]
static void Init()
{
defaultActions = null;
s_InputActionReferenceCounts = new Dictionary<InputAction, InputActionReferenceState>();
}