Gun Attachment System | Gun Series 10 | Unity Tutorial

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

КОМЕНТАРІ • 15

  • @fakemako4069
    @fakemako4069 Рік тому +1

    This is so underrated. I've been looking for a video like this for ages. Thanks!

  • @giana7914
    @giana7914 2 місяці тому

    i tried making a scriptable object that worked the way the Attachment class work (so it has a name, Modifiers list, cost, unlocklevel, is selected) but i cant seem to have the list show in the inspector in any way is there any solution. beacouse i wold like to make it easier create attachment using scriptableobject instead of coding them inside the script. then i wold probabli use an array or list to create them and add them to ui

  • @tenkaiyo5153
    @tenkaiyo5153 Рік тому +2

    always love your tutorials! they either give great solutions to problems I'm having or give me new inspiration for my work! thank you so much!

  • @jonahmininger3385
    @jonahmininger3385 Місяць тому

    Is there a step that you didn't show that has to do with making the UI work? I followed along and made both the Attachment Document and Attachment Slot UI elements but when I boot up the game, the "esc" to open and close doesn't even work let alone any of the other features. The UI just sits on my screen and does nothing. I tried opening your project but it got corrupted and not all the files transferred so I couldn't run your project due to all the errors. I cross referenced your UI and it's almost identical so I don't know what it could be.

    • @jonahmininger3385
      @jonahmininger3385 Місяць тому

      I completely forgot to add the script to the UI Document, that's my bad. but I would point that out in the future, because I had no idea. Anyway, now that I have that on, I can hit esc to open the menu, but if I try to close it or click anywhere, it throws an error
      "NullReferenceException: Object reference not set to an instance of an object. GunSystems.Guns.Applier.UI.AttachmentDocumentController.BuildOptionsForSlot (GunSystem.Guns.Slot Type) (at Assets/UI Toolkit/AttachmentDocumentController.cs:269)
      That line reads: OptionScrollView.Add(slot);
      Please let me know what you're thinking

    • @LlamAcademy
      @LlamAcademy  Місяць тому

      Hmmm...most likely there is something set up different on the UI document where UITK cannot find the Option Scroll View

  • @billybillington8574
    @billybillington8574 Рік тому +2

    Is this usable for first person too?

    • @LlamAcademy
      @LlamAcademy  Рік тому +1

      Sure, why not? 🙂 This is all about the gun and the attachments, the first/third person camera perspective isn't considered here.

    • @billybillington8574
      @billybillington8574 Рік тому +1

      @@LlamAcademy Would you be ok if I used this series in my own project?

    • @LlamAcademy
      @LlamAcademy  Рік тому +1

      Of course! It’s not useful if you can’t use it!

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

      I can confirm this whole system works great as an FPS controller. I've been spending a lot of time trying to find an FPS controller I really like (that's free) and just haven't found much, so decided to make my own.
      I've adapted the RigidBody movement logic from Catlike Coding's movement series, and I'm working on integrating this gun system. As a relatively new developer it is a bit overwhelming, but I'm loving it.
      I'm a CoD kid, so a good FPS controller is important to me. Catlike Coding and LlamAcademy have made that achievable

  • @brian_obino
    @brian_obino Рік тому +1

    🙏Finally

  • @SGUDevs
    @SGUDevs 8 місяців тому

    sword would work too

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

    How can ı make this, like crysis customize system

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

      Seems like it's mostly just a different UI