Hi,
The cross platform input is not working. I took the survival shooter sample compiled in for android on unity 5 imported the cross platform input package and put the joystick controller on the player, but still things do not work on the unity remote app. I also request you if you could arrange a tutorial for cross platform input in general because with unity 5 it is different as compared to unity 4.6 where we had the standard assets - mobile in unity 5 we need to use the cross platform input, correct? so it is difficulat to understand. Also there isn’t any help in the unity manual as well
Also can’t get the Joystick to work, using it in exactly the same way I used to before.
I also put together a test program.
using UnityEngine;
using System.Collections;
using UnityEngine.UI;
using UnityStandardAssets.CrossPlatformInput;
public class TestJumpNewGuiText : MonoBehaviour
{
Text readout;
bool jump;
void Start () {
readout = GetComponent<Text>();
if (!readout)
{
Debug.Log("Readout needs a NEW GUI Text component!");
enabled = false;
return;
}
}
void Update()
{
// GetButton Returns true while the virtual button identified by buttonName is held down.
jump = CrossPlatformInputManager.GetButton("Jump");
if ( jump )
{
readout.text = "Jump";
}
else
{
readout.text = "NO Jump";
}
}
}
I never see a JUMP only NO JUMP…
Anyone see anything wrong with that test?
@twobob - In your project, make sure you do GameObject->UI->EventSystem. As soon as I added that to mine, everything started working.