Forum rules - please read before posting.

Unity First Person Controller integration Problems

edited March 30 in Technical Q&A

Hello Community,

I am trying to integrate the Unity First Person Controller integration in Unity 6.
I followed this tutorial, https://adventure-creator.fandom.com/wiki/Unity_First_Person_Controller_integration, but it is not working. The character does not move and the error I get is that "Cannot set first-person camera because it cannot be found on the Player Active Player"

Comments

  • Don't set AC's Movement method to First Person, as that'll force AC to use its own implementation. Try either None or Direct instead.

  • Thanks Chris I managed to get it working, but their are still some steps that needed to be added to the tutorial. Here is waht I did to get it working, if you have a better solution please let me know.
    1. Add AC to scene
    2. Remove AC main camera
    3. Add the following prefabs from the Unity First Person Controller, Main Camera, Cinemachine Brain and PlayerCapsule, and finally the PlayerFollowCamera
    4. Add the Main Camera component of AC to the main camera and disable the Cinemashine brain
    5. Add a camera component to the Cinemachine Brain Object and disable the camera component.
    6. Add the cinemashine braine game obejct to AC default camera field
    7. Add the AC player component to the PlayerCapsule game object
    8. Add the PlayerFollowCamera as a child of the PlayerCapsule
    9. Also add the PlayerFollowCamera to the Cinemachine Camera Target field on the PlayerCapsule First person Controller script.
    10. Add the following script to the Player Capsule Game object. https://adventure-creator.fandom.com/wiki/Unity_First_Person_Controller_integration PS: There is a error in the script: Change worldDirectionworldDirection to worldDirection and tick AC Turns Camera
    11. In the PlayerFollowCamera Gameobject assign the PlayerCapsule to the Follow field.

    I hope this helps.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.