Can't enable CrossPlatformInput prefabs

I’m trying to integrate virtual joysticks to my mobile game and I learned that Unity had a package for just that, CrossPlatformInput, but I can’t enable the joysticks when I drag it into my hierarchy. For example, when I put the MobileSingleStickControl into my hierarchy, I can’t see it in the editor or the game preview. Selecting the arrow on the left in the hierarchy shows that the JumpButton and MobileJoystick are disabled but when I try to click on the check to enable it in the Inspector, nothing happens, it just does not enable.

I have an EventSystem and I have my project set to Android. I would really like to know why this package doesn’t work.

EDIT: Never mind, I may have figured it out.

For others who find this, from: Cannot activate GameObjects in Inspector because of a script? - Questions & Answers - Unity Discussions

Make sure to (1) have a mobile platform set in Build Settings and (2) click Mobile Input > Enable.

2 Likes

I have set my build to android, but i cant make the mobile input menu appear. I have seen it before, but because i cant get to it, i cant enable mobile input.Any thoughts?

I was able to fix my issue by reimporting the entire standard package. I had initially selected only the CrossPlatformInput section. I

3 Likes

Thank you srajpal. Actually, beyond the Standart Assets/CrossPlatformInput folder, we need the CrossPlatformInputInitialize.cs file which is responsible for showing the Mobile Input tab menu. It is inside the Standart Assets/Editor folder. I kept only this in my project and it worked.

5 Likes

I was missing CrossPlatformInputInitialize.cs as Alissin mentioned. This resolved the issue for me! Ty!

1 Like

Thanks

Worked for me… Switch platform to Android
7486556--921377--upload_2021-9-10_11-22-7.png