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
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.
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
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
This is so underrated. I've been looking for a video like this for ages. Thanks!
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
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!
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.
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
Hmmm...most likely there is something set up different on the UI document where UITK cannot find the Option Scroll View
Is this usable for first person too?
Sure, why not? 🙂 This is all about the gun and the attachments, the first/third person camera perspective isn't considered here.
@@LlamAcademy Would you be ok if I used this series in my own project?
Of course! It’s not useful if you can’t use it!
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
🙏Finally
sword would work too
How can ı make this, like crysis customize system
Seems like it's mostly just a different UI