Unity - how to make a POV changing camera like minecraft

Поділитися
Вставка
  • Опубліковано 21 лис 2024

КОМЕНТАРІ • 5

  • @ahggw
    @ahggw 2 роки тому +1

    Thank you for the lesson

  • @ahggw
    @ahggw 2 роки тому

    Please help me how to solve :'Camera' does not contain a definition for 'main'

    • @lurple_
      @lurple_  2 роки тому

      Make sure that the camera you're using with the player has the tag called "maincamera" on it or the other easier way to fix the issue would be to remove the line in the void start assigned the camera to amera.main and making the camera variable in your script public and then in the inspector simply dragging the camera there hopefully this helped with your problem :)

    • @ahggw
      @ahggw 2 роки тому

      @@lurple_ Thank you very much, it helped a lot (I just started to get involved in unity, I apologize if this was a bonal mistake)

    • @lurple_
      @lurple_  2 роки тому +1

      @@ahggw you don't have to apologize if you ever have any questions regarding unity you can add me on discord if you like I'm always down to help any developer in any ways possible.