Hello, sorry to bother you with this question, I know it has been asked by other people in the past but I can't find a way to fix it and I've been stuck for more than a week.
AC version is 1.78.4
I have setup a first person game with first person player. AC settings are set to first person (I check everytime I play), cursor is locked in center at startup, input is mouse and keyboard. I have created the CursorHorizontal and CursorVertical inputs in the Unity projects settings/input manager, and they are assigned to mouse axis and not to buttons.
When I run a preview in Unity, when the game begins directly at Player Start location in the first scene, it works perfectly and I can rotate the view with the mouse as I want. No problem here, it seems to be set up properly.
Now I try to add a logo (on a 3d plane) when the game starts, and then display some 3d assets used as a background for the main menu. They are both linked to a separate camera with an AC script Basic camera.
OnStart script, I have an Engine:Manage System action in which I change the movement method to None (I also tried Direct). I switch to the camera of the logo, wait 3 seconds and switch to the camera of the 3d assets used for the main menu. Then I display in front of the assets a AC Menu.
It works well: I see the logo, then the 3d assets with the AC Menu, and the cursor moves freely in the screen so I can click on New game as I want. Still no problem here.
When clicking on New game, it turns off the AC Menu, and switches back to the Last gameplay camera (or to the player's first person camera - I tried both). I have then added again an Engine:Manage System action, in which I change the movement method back to First Person.
I finally unlock the Inventory and Options menus.
When I run a preview it doesn't work here: after closing the menu, I can see the first scene of the game in first person view being displayed, with the cursor locked in the center of the screen, but whatever I do the camera won't move... It stays stuck with the cursor at the center of the screen, even though it switched back to First Person properly.
If I do a right click to display the inventory, I can see in the AC settings that it switches properly from First Person to Direct, then back to First person when I close the inventory. The camera stays stuck nevertheless.
I have tried to add a Player:Constrain and play with the Free-aiming and Cursor Lock options, but it didn't work either.
I'm not quite new to using AC and have made several projects with it, and always found a way around to fix my issues, but this time I'm stuck... I would really appreciate some help or ideas. Thanks in advance!
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
Thanks for the details. I've tried recreating the issue from your description, but I'm not able to get the same behaviour. If the cursor is locked, free-aiming ought to be enabled by default.
Is this all happening in the same scene, and are you affecting any other systems in your "Engine: Manage systems" Action? Screenshots will help clarify exactly what's being run and when - but you're also welcome to PM me a .unitypackage that demonstrates the issue.
Oh with your comment I have solved it, it was just a silly mistake.
In the Engine: Manage systems, I had disabled Movement... I did it on purpose, because I didn't want the player to be able to move freely around with the keyboard inputs. I thought I had to disable movement for that, but actually not, and I can still now move freely the camera around as I want.
To think that fixing the issue was so simple, and I didn't find it on my own... Sorry to bother you! But I can continue my game now, that's great! Thanks a lot for your help!