First person controller in windows store app

Hi,
my app works fine in windows standalone using first person controller, mouse and keyboard all work fine, can turn fpc off and on for UI, etc.

now I’m trying to build app for windows store, downloaded Unity-metro, set settings. UI still works, but when game switches to first person controller, mouse and keyboard do not work. What is wrong?

Thanks, Tom

Maybe there’s a switch in the code (for ex., checking a platform), and it doesn’t include Windows Store platform. Try debugging it, enable Unity C# projects option so you can set the breakpoints.

Hi,
Thanks for responding.
The first person controller camera has built in stuff for everything I need, and so I’ve just used it throughout my game scene. By turning off the #IF in the CrossPlatformManager.cs I just avoided the issue and hard-coded standalone platform,but it appears that should be done in the CrossPlatformInitialize.cs script. The CrossPlatformInitialize.cs script has options for every platform, but there here are no instructions in the commenting as to how to configure the script for different platforms. Actually, it appears you just comment out Mobile_Input and it never goes there, or comment out the platforms you are not building for.

So now that I’ve studied the Unity CrossPlatform model a bit more, my question seems obvious, but it would be nice to know before I start editing Unity asset scripts: am I supposed to edit the CrossPlatformInitialize.cs to point to my target platform?

Thanks, Tom

Those scripts are provided as base material, you can modify them as you want. And yes, as you probably noticed, sometimes those scripts don’t handle some platforms.

You can always submit a bug, so our content team can fill the gaps there. :slight_smile:

Hi Tomas,
Good to know, thanks for responding. Will modify CrossPlatform as needed. Don’t usually find bugs, just stuff I don’t understand lol.
Thanks, Tom