- Home /
Question by
Steyo · Nov 12, 2020 at 03:30 PM ·
inputoculusinput manager
Why the new Input System doesn't work for me anymore ?
Hi everyone, I'm currently having an issue with the new Input System. I made a very simple scene : I created a "Controls" Input Map, with a Laser method. I can call this method with the primary button of my VR gamepad or the space bar.
The method just displays a debug message (and displays one on a 3d text as well).
using TMPro;
using UnityEngine;
using UnityEngine.InputSystem;
using UnityEngine.InputSystem.XR;
public class Ball : MonoBehaviour
{
public Transform respawnLocation;
public TextMeshPro txt;
public void OnLaser()
{
Debug.Log("it works");
txt.text = "ball works";
}
public void OnRightGrip()
{
Debug.Log("it works");
txt.text = "ball works";
}
When I started the project a few days ago the Debug message appeared but now it doesn't anymore and i can't see why !! If anyone has a solution or see something odd, please let me know.
Comment