using System.Collections;
using System.Collections.Generic;
using System.Threading.Tasks;
using UnityEngine;
using UnityEngine.InputSystem;
public class NewBehaviourScript : MonoBehaviour
{
InputAction input;
void Start()
{
input = new InputAction("test", InputActionType.Button, "<Mouse>/leftButton");
input.canceled += e=>{
input.Disable();
};
input.Enable();
}
}
Works fine in current develop branch. I assume this was fixed by the recent changes to protect from action callbacks causing problems in internal action state.
1.1 with the fixes is scheduled to go out next week.
1 Like