The Unity Layer System - Game Dev Tutorial

Поделиться
HTML-код
  • Опубликовано: 15 ноя 2024

Комментарии • 56

  • @LostRelicGames
    @LostRelicGames  4 года назад +7

    All likes and comments appreciated! Come by the discord if you want some friendly game devs to talk to: discord.gg/yeTuU53

  • @maddened3746
    @maddened3746 3 года назад +3

    someone FINALLY explained it thoroughly .... thank God!

  • @nikolai3468
    @nikolai3468 4 года назад +12

    The collision and camera tip is actually really useful especially for someone who is starting out with unity! I wouldn't even check the physics 2d settings until i saw this, really!

    • @LostRelicGames
      @LostRelicGames  4 года назад +2

      Thanks Victor! Unity has a lot of secret passages and doors! ;)

  • @artlessdodger
    @artlessdodger 4 года назад +18

    Could you point me in the direction of some tutorials or explanations about the advantage or effects of having multiple camera rendering different layers? Just sort of touched on it and I feel like that could be something useful to know but this is all kind of new to me.

  • @sceptiletops3760
    @sceptiletops3760 Год назад

    thanks, very useful, I didnt know the layers now I see Layers seems pretty useful for all kind of games, especially platformers

  • @BazSupport
    @BazSupport 4 года назад +6

    Wow man, seeing the practical uses was great, thanks!

  • @aaronedvalson104
    @aaronedvalson104 3 года назад

    Oh dang, I'm glad I watched this. I've never really used layers until very recently and only for IgnoreLayerCollision(). I had no idea how important they were to my ideas. Thanks!

  • @christiaan_saaiman
    @christiaan_saaiman 4 года назад +1

    Hi John, I just want to let you know. I started my game dev journey only a few months ago and you have been an amazing help to get that dream started. Your tutorials are of such high quality content, it’s made the learning curve of Unity less steep than what it should be. Thank you

    • @LostRelicGames
      @LostRelicGames  4 года назад +1

      Thanks for your thoughtful comment Christian.
      I know all too well how steep that early curve can be!
      I'm happy to hear i was able to help you on this adventure. Wishing you the very best on the path ahead.

  • @marcgrabulosarenart8074
    @marcgrabulosarenart8074 Год назад

    Thank you very much. I searched a lot and finally I got what i wanted

  • @p199a
    @p199a 4 года назад +2

    very good video i like how you show use case scenarious in your real project

    • @LostRelicGames
      @LostRelicGames  4 года назад

      Hey thanks! Will do more like this soon :)

  • @יסעורשחף
    @יסעורשחף 3 года назад

    channel of the year 2020.

  • @stephanielim2841
    @stephanielim2841 4 года назад +2

    You're the best. Thanks for explaining a fundamental tool on Unity and using great examples and simple ways to use them for tasks. I feel like whenever you explain it that way, you give us a big potential of things to do with it! :)
    Maybe next time you can explain another tool that can be useful. I'm excited.

  • @vast634
    @vast634 3 года назад +1

    You could edit the "m_LayerCollisionMatrix" in the raw project settings file to deselect all collisions in the matrix.

  • @gravious
    @gravious 4 года назад +3

    Awesome stuff! Really in-depth and useful, thanks :)

  • @izeckx
    @izeckx 3 года назад +1

    Newbie here, would you mind explaining the reasoning for the three cameras? I'm puzzled as to why you use that system.

  • @gnielsenn
    @gnielsenn 4 года назад +3

    Great tutorial man!

  • @primetime3422
    @primetime3422 Год назад

    3:51 add a deselect all button. Wish granted

  • @shavais33
    @shavais33 3 года назад

    Incredibly helpful material! 👋👍

  • @nekokna
    @nekokna 3 года назад

    i REALLY needed to learn about this, thank you for such a good content!thank you TTUTT

  • @foreducation408
    @foreducation408 Год назад

    really helpful video, helped a lot thanks for making it.

  • @sadamps
    @sadamps 2 года назад

    Excellent tutorial. Subscribed.

  • @yusrighouse
    @yusrighouse 4 года назад

    Oooo nice video. Really puts this layers business in perspective.

  • @TheQpower
    @TheQpower Год назад

    Could you give me an example why reason 3, with the camera, is useful? What are the benefits? Would love to learn more 😊

  • @jokeonthisbaby
    @jokeonthisbaby 2 года назад

    Loving your content man, keep up the good work 👍

  • @aleksitjvladica.
    @aleksitjvladica. 3 года назад

    Wow, you are so cool! Look, behaviour, everything!

  • @BlueGooGames
    @BlueGooGames 4 года назад

    Just using layers to put something in and lock it from being selected, like the background/ground if you’re making a level or so. :) EDIT: oops you just said that after i posted it ;)

  • @BattleDrumz
    @BattleDrumz 4 года назад

    Wow. Why has no one explained this to me before! Question about your background and foreground perspective camera: are those layers shifted on the Z axis to achieve parallax? If so, why not just code the parallax in ortho?

  • @artyomcg
    @artyomcg 2 года назад

    Thank you! It is very useful.

  • @Ashes21296
    @Ashes21296 4 года назад

    Thanks for this knowledge.

  • @jayd1os400
    @jayd1os400 4 года назад

    Hey man whats up. I think you should do a follow up to the pickups tutorial that you made a little while ago it's cool to have items in the game but what if i want thies items to do something when i pick them up like regain health or increase players melee damage or change player attack animation and much more i really think you should do a tutorial on that so that items i pickup dont just disappear and do nothing :)

  • @Visuwyg
    @Visuwyg 3 года назад

    Great! I was hoping for something like this. Weird that it is hidden in Project Settings...

  • @dev.ashesh
    @dev.ashesh Год назад

    Just saw this video and subbed.. I have a question, can layers replace colliders?

    • @LostRelicGames
      @LostRelicGames  Год назад

      Hey Erich! Colliders are still useful to get access to the inbuilt OnTrigger/OnCollision funcitons. Without them you would have to create your own collision logic. Distance checks or box checks.

    • @dev.ashesh
      @dev.ashesh Год назад

      @@LostRelicGames but will it be usable for like lets say rocks, trees or any ingame props? That instead of using the usual unity colliders, ill use layers instead.. Would that work?

    • @LostRelicGames
      @LostRelicGames  Год назад

      Layers alone won't give you any collision. You will need to attach colliders.

  • @JonTopping
    @JonTopping 2 года назад

    What is the reason for having three cameras rendering different layers in the scene? How does that help you?

    • @LostRelicGames
      @LostRelicGames  2 года назад +1

      Each camera can have a unique depth of field and culling pool. Also in my case i, mix perspective and orthographic cameras, ie. Perspective for BG, orth for Player layer.

  • @ErtBaran
    @ErtBaran 2 года назад

    Great ! Thanks.

  • @LotionSoronarr
    @LotionSoronarr 4 года назад

    Why the 3 cameras? Can't only 1 be active at one time?

    • @bbborbo
      @bbborbo 3 года назад

      you can change their render setting so that multiple cameras are rendering at once - i think that would be "depth only" rendering

  • @Lobster-xg7se
    @Lobster-xg7se 4 года назад

    Intro music pls name

  • @hajacha1624
    @hajacha1624 8 месяцев назад

    I found this very usefull

  • @samirisgood5735
    @samirisgood5735 2 года назад

    thanks

  • @wibu-271
    @wibu-271 2 года назад

    Great !! 👍👍👍

  • @LawZist
    @LawZist 4 года назад

    Great video

  • @kibyes6789
    @kibyes6789 4 года назад

    Second!

  • @exe1793
    @exe1793 4 года назад

    hi from russia

  • @vidarsoderman4536
    @vidarsoderman4536 4 года назад

    ᖴIᖇᔕT😊