Hello!
I am trying to figure out how to turn off the left hand in script for the ActionBasedSnapTurnProvider. There is a lovely checkbox in the editor (“Use Reference”) but I just cannot figure out how to check/uncheck it in code.
[SerializeField] private ActionBasedSnapTurnProvider provider;
void Start() {
provider = GetComponent<ActionBasedSnapTurnProvider>();
// How do I reach the left hand "Use reference" bool here???
}
Grateful for all help!
Are you asking to stop the left joystick from being able to rotate the player? Why not remove the input from the ActionBasedSnapTurnProvider, and leave only the right action.

That use reference is a bool of the InputActionProperty and is private so you cannot access it without reflection.
1 Like
Thanks for your answer! I tried setting the reference itself to null but also could not figure out how this was done in script. See, I am changing between joystick and teleportation - for the first, I’d like only one hand for turning, for the second, I would like both.
Realised that this was solved by using the continuous turn provider for joystick so no problem anymore.