Cinemachine - Camera Follow | Unity

Поділитися
Вставка
  • Опубліковано 14 лип 2024
  • Create your own Unity short film:
    courses.obalfaqih.com/courses...
    Cinemachine - Camera Follow | Unity
    Need help? Book a consultation session now:
    store.obalfaqih.com/products/...
    In this Unity tutorial, I will give you a short brief and intro to Cinemachine, and we'll make the camera follow the player without a single line of code!
    Chapters
    00:00 Intro
    00:40 Installing Cinemachine
    01:00 Create a Virtual Cam (VCam)
    02:00 VCam Setup
    03:18 VCam Zones
    04:25 End
    ------ Tools & Gear I Use (Affiliate Links) ----
    obalfaqih.com/gear
    ------------ Links ------------
    My website:
    obalfaqih.com
    Blog:
    obalfaqih.com/blog
    Discord:
    / discord
    Unity:
    unity3d.com
    GitHub:
    github.com/OBalfaqih/Unity-Tu...
    Twitter:
    / obalfaqih
    Instagram:
    / obalfaqih
    Facebook:
    / obalfaqih
    Music:
    bensound.com

КОМЕНТАРІ • 131

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

    I've just released a new update for my Unity tool, OB - Object Placer:
    ua-cam.com/video/EBc_-5vQUZU/v-deo.html
    And I created a cinematic promo:
    ua-cam.com/video/LFBY2R_MudI/v-deo.html
    You can get it here:
    assetstore.unity.com/packages/tools/utilities/ob-object-placer-181373

  • @HoneyBadger-101
    @HoneyBadger-101 4 роки тому +4

    ما صدقت أني احصل عربي بهذا المستوى من الخبرة يشرح يونتي 3D وعلى الماك بعد
    شكرا لك شكرا لك 🙏
    واصل يا مبدع

    • @obalfaqih
      @obalfaqih  4 роки тому +4

      شكراا لك وان شاء الله قدرت افيدك ولو بمعلومة🙏🏼🙏🏼

  • @ricebowl___
    @ricebowl___ 3 роки тому +5

    Great tutorial man. I love how simple this was. Awesome stuff.

    • @obalfaqih
      @obalfaqih  3 роки тому +1

      Hey thanks! Appreciate it🙏🏼

    • @vibeJaq
      @vibeJaq 6 місяців тому

      Yeah he was really so good at explaining

  • @ASouza-ut9kb
    @ASouza-ut9kb 11 місяців тому

    The best video about camera!

  • @fernandog9647
    @fernandog9647 3 роки тому +1

    your tutorials are awesome dude!

    • @obalfaqih
      @obalfaqih  3 роки тому

      Thanks, you’re awesome 🙏🏼 😎

  • @iliachakarov7285
    @iliachakarov7285 11 місяців тому

    Perfect! TY!!

  • @sealsharp
    @sealsharp 6 місяців тому

    Short and useful, like a well trained rescue corgi.

  • @FuzzyDPozzy
    @FuzzyDPozzy 4 роки тому

    thanks for the tutorial !

  • @luukdebeijer5062
    @luukdebeijer5062 4 роки тому +2

    sick dude. i needed a camera for my 3d platformer.

    • @obalfaqih
      @obalfaqih  4 роки тому +1

      Hopefully there are more cinemachine tutorials to come👌🏻

  • @dibaterman
    @dibaterman 3 роки тому +5

    Yeah, see thank you! Just been having an overwhelming day, thank you for not flexing your C# skills on a 14+ minute video for something that can be explained without C# in less than 5 minutes.

  • @potatoKnight32
    @potatoKnight32 3 роки тому

    great tutorial, thx bro

    • @obalfaqih
      @obalfaqih  3 роки тому

      Glad it helped 🙏🏼

  • @antalas
    @antalas 4 роки тому

    Thank you my brother. It is very helpfull.

  • @halivudestevez2
    @halivudestevez2 3 роки тому

    thank you for the tut, is is very good!

    • @obalfaqih
      @obalfaqih  3 роки тому

      Thanks! Glad you found it helpful 🙏🏼

  • @EnderElectrics
    @EnderElectrics 4 роки тому +9

    I'VE BEEN LOOKING FOR THIS FOR MONTHS NOW AND *_NOW_* I GET ALL THESE VIDEOS IN MY RECOMMENDED???????

  • @SabbaLinga
    @SabbaLinga 4 роки тому

    Very helpful thx

  • @toystoto7678
    @toystoto7678 4 роки тому

    جزاك الله خيرا اخي

  • @canny255
    @canny255 3 роки тому

    Thanks a lot!

  • @calvinms7503
    @calvinms7503 Рік тому

    thank you

  • @viker555
    @viker555 3 роки тому

    Thanks for your

  • @alejob5325
    @alejob5325 3 роки тому +1

    Great tutorial! Thanks.
    I have a small question. Do you know if is there any way to let my cinemachine camera follow my player just on Y axis? Thanks!

  • @umarujalloh2962
    @umarujalloh2962 Рік тому

    Thanks !

  • @yassinerobot8165
    @yassinerobot8165 4 роки тому

    Thanks bro

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

    THANK YOU!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

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

      You’re welcome!!!!! 😁🙏🏼

  • @programophy7390
    @programophy7390 3 роки тому

    Love you man!

    • @obalfaqih
      @obalfaqih  3 роки тому

      🙏🏼🙏🏼🙏🏼

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

    I ve heard cinemachine before, but i didnt think it would help me follow the player so i was trying write the same f.king code for camera to follow player :7 Ty it was really helpful

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

      Hahaha yeah it’s really a great feature, you can do a lot with it without a single line of code 🤯

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

    عجيب هذا شرحك؟؟
    والله ما شاء الله مبدع احسبك واحد اجنبي
    لين انتبهت من التعليقات
    Thank you man for thr guide i just almost finish my little game and i hate myself because the camera

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

      ههههه يعطيك العافية الله يسعدك 🙏🏼
      بالتوفيق يارب، وعيدك مبارك 🎉

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

      @@obalfaqih
      الله يعافيك ينعاد علينا وعليك يالصحة والسلامة

  • @UnitySimplified
    @UnitySimplified 4 роки тому +1

    Ma Sha Allah

  • @tonax2008
    @tonax2008 4 роки тому

    Thanks :)

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

    Problem I run into is the movement forward isn't the direction of the camera.. When I do it myself using Input, I can do that, but for some reason with Cinemachine, I have to hit down for the character to turn back and walk that way. I'd expect it to walk backwards instead. What am I missing?

  • @Ahmed_Hachelfi
    @Ahmed_Hachelfi 4 роки тому

    شكرا

  • @salamcharev8105
    @salamcharev8105 4 роки тому +1

    السلام عليكم ورحمة الله وبركاته مشكور جدا على مجهودك أخي عمر نتمنى تعمل كورس unyti من الصفر حتى الاحتراف وشكرا لك

    • @obalfaqih
      @obalfaqih  4 роки тому +1

      وعليكم السلام ورحمة الله وبركاته
      في دروس لتعليم الاساسيات الى تعليم تطوير لعبة بسيطة، اتفضل:
      سلسلة اساسيات محرك يونيتي
      m.ua-cam.com/play/PLaqp5z-4pFi4UgNoCVqFHnRwC8_1JR-Lk.html
      سلسلة أساسيات البرمجة ua-cam.com/play/PLaqp5z-4pFi5vg_Vx54R2DYVePrBZOVe3.html
      سلسلة تطوير لعبة بسيطة ua-cam.com/play/PLaqp5z-4pFi4ZyzcMoGvGkqrY2gnYTJPI.html
      سلسلة تصدير اللعبة الى الاندرويد (مع إضافة خاصية الشراء)
      m.ua-cam.com/play/PLaqp5z-4pFi76MJHyETmFXWRRyNtbV6Oz.html
      تحياتي، واتمنا لك كل التوفيق

    • @salamcharev8105
      @salamcharev8105 4 роки тому

      @@obalfaqih وفقك الله أين ما اتجهت

  • @user-dm5qi4nb6l
    @user-dm5qi4nb6l 3 роки тому

    I want to be able to rotate my camera view with right click, is there a video about that?

  • @ibra_royal5806
    @ibra_royal5806 4 роки тому

    can you make video for the most commands I have to learn...or (if you can) make tutorial cycle ....
    And thanks for everything 🙂
    You are great 👍

    • @ibra_royal5806
      @ibra_royal5806 4 роки тому

      Because I can’t watch foreigners videos ...
      It’s in English !
      I don’t understand them clearly!

  • @mazinsawdi1858
    @mazinsawdi1858 3 роки тому

    ثبتها من الباكج مانجر.لكنها لم تظهر اعلى الشاشه عند قائمه Tools Window مالسبب؟

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

    عمر i need Cinemachine ما لقيتها في الستور

  • @KareemTarekOfficial
    @KareemTarekOfficial 4 роки тому

    شكرا+ ممكن تسوي شروحات لعمل لعبة رعب مثل granny او لعبة رعب فقط :)

  • @sivareno
    @sivareno 4 роки тому

    Thank you!! My virtual camera is shaking based on walking animation of character, how to make it smooth, please help me..

    • @obalfaqih
      @obalfaqih  4 роки тому

      You're welcome! 🙏🏼
      Is it the same as 2:50?
      If that's the case, try to increase the damping for each parameter.
      Damping will make the movement smoother and it will take longer for the camera to move and adjust.
      Hope that solves it.
      Good luck!

    • @mesfinlakew136
      @mesfinlakew136 3 роки тому

      look bracekeys tutorial
      \bracekeys is the best channel on youtube about developing games ok !!!!

  • @rabiii3
    @rabiii3 Рік тому

    Your accent is astonishing bro

  • @viker555
    @viker555 3 роки тому

    I like

  • @gamedoughhh
    @gamedoughhh 3 роки тому

    if i have a prefab, i want to use cinemachine, is it possible to feed cinemachine variables lookat and followat automatically?

    • @alexioplexio
      @alexioplexio 3 роки тому +1

      did you figure this out i have the same problem

    • @gamedoughhh
      @gamedoughhh 3 роки тому

      @@alexioplexio i figure out it's not possible. But I'll show you in my channel this week

  • @oscarsimental27
    @oscarsimental27 3 роки тому

    when I put the player to "follow" and "look at" in the cinemachine properties this "works" in the game window, but when I press play, the main camera does not follow the cinemachine camera. Help:(

    • @obalfaqih
      @obalfaqih  3 роки тому +1

      Maybe you have more than one camera. If that’s the case, then either increase your current cinemachine camera priority, or disable the other one.
      Another issue might be that the target of the player you set isn’t moving, only the player’s model.

  • @iidanger3157
    @iidanger3157 4 роки тому +1

    تنصحني بالدورات المدفوعة لتعلم يونتي؟ اكو شخص اسمه faisal dev عربي سوه دورة ب100 دولار شنو رائيك اشترك بدورة مدفرعة لو المجانيات تكفي؟

    • @obalfaqih
      @obalfaqih  4 роки тому

      اتأكد من محتوى الدورة ومستواك الحالي، غالبا تكون الدورات مفيدة. صحيح في دروس مجانية كثيرة ولكن في نفس الوقت المدفوعة برضه مفيدة. في النهاية القرار لك وعلى حسب الدورة وخبرتك.

  • @Ahmed_Hachelfi
    @Ahmed_Hachelfi 4 роки тому +1

    عمر ممكن تعمل اضافة انيميشن للاندرويد مثل عندما احرك جويستيك يقوم بحركة المشي walking و عندما اتوقف عن تحريكها يعود الى حالته الطبيعية (واقف idle)

    • @obalfaqih
      @obalfaqih  4 роки тому

      عملت درسين من قبل، هذا درس الجويستيك:
      m.ua-cam.com/video/yggYAUC-_-c/v-deo.html
      وهذا درس الحركة:
      m.ua-cam.com/video/U0dlWhB_e0E/v-deo.html
      تحياتي

    • @Ahmed_Hachelfi
      @Ahmed_Hachelfi 4 роки тому

      @@obalfaqih شكرا

  • @salmananwer8168
    @salmananwer8168 3 роки тому

    nice thk

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

    Unity 4 or unity 5???

  • @Ahmed_Hachelfi
    @Ahmed_Hachelfi 4 роки тому +2

    ممكن تعمل ركوب و نزول من السيارة زي gta او ببجي pubg

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

    Walaikumsallam

  • @FuzzyDPozzy
    @FuzzyDPozzy 4 роки тому

    can i use it for photon multiplayer?

    • @obalfaqih
      @obalfaqih  4 роки тому +1

      I think you can, since it's still using default camera in a way.

    • @FuzzyDPozzy
      @FuzzyDPozzy 4 роки тому

      @@obalfaqih thank you man this saved me!!!

  • @viker555
    @viker555 3 роки тому

    I like you

  • @Ahmed_Hachelfi
    @Ahmed_Hachelfi 4 роки тому +1

    ممكن تعمل قائمة اختيار سيارات او الشخصيات

    • @obalfaqih
      @obalfaqih  4 роки тому

      اتفضل، هذي مجموعة دروس منوعة عن الواجهات والقوائم - UI
      m.ua-cam.com/play/PLaqp5z-4pFi5pm1iOj_EmGAvQSUj-YPpy.html

    • @Ahmed_Hachelfi
      @Ahmed_Hachelfi 4 роки тому

      @@obalfaqih شكرا

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

    my character turn with mouse. so i dont know why but my camera turn so fast when my character turn. can you help? how can i more slow this camera?

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

      Try modifying the damping values, these values will affect how fast the camera will follow/rotate with the player.

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

      @@obalfaqih thank you. i have a question again. i dont want to turn this camera? is it possible?

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

      Yes, you can make only follow the player without rotating. In the Cinemachine virtual component, just assign the player as a Follow target. And set the aim target to none. It shouldn’t look at the player then.

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

      @@obalfaqih ohhh thans again. good work💪

  • @iidragonflyiiAnimations
    @iidragonflyiiAnimations Рік тому

    It works but The camera won't rotate

  • @user-ie7rx8dq4h
    @user-ie7rx8dq4h 4 роки тому +1

    السلام عليكم
    عندي لعبة وانتهيت من الشغل عليها واذا جيت ارفع حزمة ال apk او abb يرفضها
    هل في اعدادات خاصة لازم اسويها؟
    مع العلم ان Ndk مو مثبته

    • @obalfaqih
      @obalfaqih  4 роки тому

      وعليكم السلام ورحمة الله وبركاته
      ايش الرسالة الي تطلع؟
      يمكن حجم الملف كبير

    • @user-ie7rx8dq4h
      @user-ie7rx8dq4h 4 роки тому

      @@obalfaqih
      You uploaded an apk or android abb Bundle that was signed in debug mode. You need to sign your Apk ir android abb Bundle in release mode.
      حجمها ٤٠ ميغا بس

    • @obalfaqih
      @obalfaqih  4 роки тому

      الرسالة تقول انه التصدير كان debug، يعني اصدار تجريبي. لازم يكون release.
      اتفضل، يمكن يفيدك:
      answers.unity.com/questions/1096300/hello-i-have-a-big-probleme.html

    • @user-ie7rx8dq4h
      @user-ie7rx8dq4h 4 роки тому +1

      @@obalfaqih
      شكراً شكراً شكراً
      طلعت المشكلة في ال key

    • @user-bp7yn8oq5y
      @user-bp7yn8oq5y 4 роки тому +1

      @@user-ie7rx8dq4h ويش اسم العبه

  • @carlabalos3884
    @carlabalos3884 4 роки тому

    whats the difference in using this instead of a third person camera?

    • @obalfaqih
      @obalfaqih  4 роки тому +1

      You've got more control with Cinemachine. A lot of features that you can use and modify without the need to write any code yourself.

    • @carlabalos3884
      @carlabalos3884 4 роки тому

      @@obalfaqih will i still be able to move the camera with the mouse?

    • @obalfaqih
      @obalfaqih  4 роки тому

      Yes, you can use the free look camera. This is a tutorial from Unity:
      m.ua-cam.com/video/X33t13gOBFw/v-deo.html

  • @user-fr5xi5ns4n
    @user-fr5xi5ns4n 4 роки тому

    الله يخليك يا عمر تكفى
    دحين السينماشين لو اللاعب اختفى او مات و تم استدعاءه
    اللاعب بيختفي من مركب السينماشين والصورة حتوقف !!!!!!؟

    • @obalfaqih
      @obalfaqih  4 роки тому

      لو كان اللاعب يرجع بنفس الوقت من غير ما تعيد المرحلة، ما راح تحذف اللاعب.. بس تغير موقعه

  • @mesfinlakew136
    @mesfinlakew136 3 роки тому

    hey, please i wanna downoad the playerobject (the guy)

    • @obalfaqih
      @obalfaqih  3 роки тому

      He comes with the Cinemachine package. You can import the example scenes by clicking on that button in the package manager.
      forum.unity.com/proxy.php?image=https%3A%2F%2Flh6.googleusercontent.com%2FQ_MNA_I5pCmX2vr8wask9QT9VAXEWNCs5P283wBpgKTHvImCvnzInF26VL_O_QxKPE9AFd7P_Y0r3MOeRRxNRs4QSKx74xA5VkkcTjaATC5SSO7Zdu3FpQyL7ds14o5IEeG0ZbWV&hash=6b58cc290a430937e6028df2b91b91ae

  • @hamzabenelkbir
    @hamzabenelkbir 4 роки тому +1

    brother thank's for our videoes pleasse i need tutorial about matchmaking like pubg or free fire signup and make match with player thank's again

    • @obalfaqih
      @obalfaqih  4 роки тому +1

      Hi there, thanks for your comment.
      Maybe in the future but not now since the focus of current tutorials is not on multiplayer games. For now, you can check this tutorial:
      m.ua-cam.com/video/SNhWbHqFUbU/v-deo.html
      Unity released an FPS multiplayer game a while back, you can check this out:
      m.ua-cam.com/video/aTnBAzin9vE/v-deo.html
      Good luck and all the best brother!

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

    Waalaikum Salam

  • @tunzzi
    @tunzzi 3 роки тому

    Salam aleykom. thank you for this video

    • @obalfaqih
      @obalfaqih  3 роки тому

      Walaikum assalam, you're welcome! 🙏🏼

  • @Ahmed_Hachelfi
    @Ahmed_Hachelfi 4 роки тому

    ممكن تعمل درس الهاتف زي gta v اعمل اتصال باكواد الغش و الكاميرة 📷

  • @zaiaiii
    @zaiaiii 4 роки тому

    فيديو سهل لأفهم

  • @abdelrhman-mj9xs
    @abdelrhman-mj9xs 4 роки тому

    اخي عمر كيف احمل mono development و اشغلو علي unity

    • @obalfaqih
      @obalfaqih  4 роки тому +1

      الإصدارات الأخيرة من Unity صارت تجي مع Visual Studio Community

    • @abdelrhman-mj9xs
      @abdelrhman-mj9xs 4 роки тому

      @@obalfaqih شكرا

  • @entergames7863
    @entergames7863 4 роки тому +1

    مرحبا اخي عمر
    انا مبتدئ في هذا المجال وانا اعشق تصميم الألعاب
    هي ليست هواية لا بل حلم ..
    لا أعلم كيف ابدا وكيف اتعلم
    و أوجه مشكلة في البرمجة كيف اتعلمها بشكل كامل في هذا المجال ولا اجد دروس كاملة شاملة عربية
    هل تستطيع مساعدتي ولك جزيل الشكر 🌷

    • @obalfaqih
      @obalfaqih  4 роки тому

      اهلين فيك اخي،
      في القناة في دروس من اساسيات البرمجة الى تطوير لعبة بسيطة.
      - دروس قديمة لأساسيات المحرك:
      m.ua-cam.com/play/PLaqp5z-4pFi4UgNoCVqFHnRwC8_1JR-Lk.html
      - اساسيات البرمجة:
      m.ua-cam.com/play/PLaqp5z-4pFi5vg_Vx54R2DYVePrBZOVe3.html
      - تطوير لعبة بسيطة:
      m.ua-cam.com/play/PLaqp5z-4pFi4ZyzcMoGvGkqrY2gnYTJPI.html
      وبإذن الله حلمك بيتحقق ان شاء الله، اتمنى لك كل التوفيق🤗

  • @user-fr5xi5ns4n
    @user-fr5xi5ns4n 4 роки тому

    ياخي فينك من زمان
    مافي احد يشرح عن تصميم الالعاب بالعربي

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

    Subtitel indonesia bro pliese

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

      Inshaallah I’ll add bahasa malayu/Indonesian in the upcoming tutorials.

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

    helo im malaysia im so noob play unity and assalamualaikum

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

      Wa alaikum asalam 👋🏼

  • @BumpDev
    @BumpDev 3 роки тому

    wow ur arabic!

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

    عربيييييي شن الامور