Coding With Unity
Coding With Unity
  • Видео 72
  • Просмотров 1 153 415
How to use the new Ui Toolkit to create Ui Elements with the Ui Builder
In this #unity3D video we will be using the #UiToolkit to create Ui Elements visually with the #UiBuilder. Which we will then display using a custom Inspector window for your scripts!
If you like this video or have any questions that may be too hard to answer on youtube, feel free to join my discord!
discord.gg/r6Fv2XC
********************************************************************
● Support me with Brave: brave.com/cod828
● Discord: discord.gg/r6Fv2XC
♥ Subscribe: bit.ly/2FRWgOi
● Facebook: bit.ly/2DhBC6I
● Twitter: Indie_Unleashed
********************************************************************
● Unity3D New Input System: bit.ly/3fzdOxw
● How to equip 3D Items to your characte...
Просмотров: 50 194

Видео

Unity3D - Create, Edit and Rearrange Script Templates
Просмотров 3,7 тыс.4 года назад
How to create, edit and rearrange script templates in #unity3D #CodingWithUnity #tutorial ● Discord: discord.gg/AzMtAWr ♥ Subscribe: bit.ly/2FRWgOi ● Facebook: bit.ly/2DhBC6I ● Twitter: Indie_Unleashed ● Make a Grid with a 1 dimensional array: bit.ly/2sRTpfL ● How to make Snake in Unity Tiny: bit.ly/2UmJHhe ● Climbing System Show off: bit.ly/2FPurq1 ● Unity3D Tilemaps Documentation:...
How to change your Animators Animation clips at runtime in Unity3D
Просмотров 52 тыс.4 года назад
In this #unity3D video, ill be showing you how to change the animation clips of your animator's states so that you can use the same parameters and links for different animations! To talk more about Unity3D and #GameDev or any of my other #tutorials you can join my discord at: discord.gg/r6Fv2XC ● Support me with Brave: brave.com/cod828 ♥ Subscribe: bit.ly/2FRWgOi ● Facebook: bit.ly/2DhBC6I ● Tw...
How to make an easy to extend Tween Library with Unity3D
Просмотров 8 тыс.4 года назад
In this #unity3D #tutorial video I will be showing you how to make an easy to extend and simple to use tweening library for your #UI that can be easily moved between projects. Source Code: github.com/sniffle6/Tween-Library ♥ Subscribe: bit.ly/2FRWgOi ● Discord: discord.gg/GMSur6P ● Facebook: bit.ly/2DhBC6I ● Twitter: Indie_Unleashed ● Make a Grid with a 1 dimensional array: bit.ly/2...
Using Tuples in Unity3D with C# 7.0
Просмотров 6 тыс.4 года назад
Explaining what a #Tuple is, and how to use it in #Unity3D using c#7.0 and newer! Linq Performance: jacksondunstan.com/articles/4819 ● Discord: discord.gg/S88WRkK ♥ Subscribe: bit.ly/2FRWgOi ● Facebook: bit.ly/2DhBC6I ● Twitter: Indie_Unleashed ● Make a Grid with a 1 dimensional array: bit.ly/2sRTpfL ● How to make Snake in Unity Tiny: bit.ly/2UmJHhe ● Climbing System Show off: bit.l...
How to use the new Input System in Unity3D
Просмотров 40 тыс.4 года назад
How to use the new Input System for keyboard, mouse, and gamepad. I'll also show a practical use case for the input system, and discuss various things it can be used for! ● Source: github.com/sniffle6/Input-System-Strategy-Pattern ● Support me with Brave: brave.com/cod828 ● Discord: discord.gg/S88WRkK ♥ Subscribe: bit.ly/2FRWgOi ● Facebook: bit.ly/2DhBC6I ● Twitter: Indie_Unleashed ...
Unity3D - 3D Model equipping | Scriptable Object Inventory System | Part 9
Просмотров 46 тыс.4 года назад
In this #unity3D video, we will be going over how to equip 3D models to your character so that the items will move with your armatures bones Source Code: github.com/sniffle6/Scriptable-Object-Inventory Series Playlist: bit.ly/2HChS04 ● Support me with Brave: brave.com/cod828 ● Discord: discord.gg/S88WRkK ♥ Subscribe: bit.ly/2FRWgOi ● Facebook: bit.ly/2DhBC6I ● Twitter: Indie_Unleash...
Unity3D - Pass stats from Item to Player | Scriptable Object Inventory System | Part 8
Просмотров 33 тыс.4 года назад
In this video, we will be updating the way our #unity3D #inventory #series updates the display for the interface to only updating the slots when something changes on them. We will also be passing the stats from our items onto our player non destructively. Source Code: github.com/sniffle6/Scriptable-Object-Inventory Full Playlist: bit.ly/2NsEweW If you like this channel or just Unity in general,...
Unity3D Code Review | Scriptable Object Inventory System | Part 7
Просмотров 27 тыс.4 года назад
In this video we go over the code of our project so far and rename and refactor our code to make it easier to read and work with. Source Code: github.com/sniffle6/Scriptable-Object-Inventory If you like this channel, or just Unity in general, consider joining my Discord at: discord.gg/5yj4Ecp ♥ Subscribe: bit.ly/2FRWgOi ● Facebook: bit.ly/2DhBC6I ● Twitter: Indie_Unleashed ● Make a ...
Unity3D Equipping Items | Scriptable Object Inventory System | Part 6
Просмотров 40 тыс.4 года назад
In this video we start adding an equipment system into our Scriptable Object Inventory system with #unity3D Source Code: github.com/sniffle6/Scriptable-Object-Inventory If you like this channel, or just Unity in general, consider joining my Discord at: discord.gg/5yj4Ecp ● Support me with Brave: brave.com/cod828 ♥ Subscribe: bit.ly/2FRWgOi ● Facebook: bit.ly/2DhBC6I ● Twitter: Indie...
Unity3D - Item Swapping | Scriptable Object Inventory System | Part 5
Просмотров 45 тыс.4 года назад
Item swapping with #unity3D is the 5th part of my Inventory System playlist using Scriptable Objects! Source Code: github.com/sniffle6/Scriptable-Object-Inventory If you like this channel, or just Unity in general, consider joining my Discord at: discord.gg/5yj4Ecp ● Support me with Brave: brave.com/cod828 ♥ Subscribe: bit.ly/2FRWgOi ● Facebook: bit.ly/2DhBC6I ● Twitter: Indie_Unlea...
Unity3D - Character controller and Cinemachine | Scriptable Object Inventory system | Part 4
Просмотров 22 тыс.4 года назад
In this video we will be updating our #unity3D inventory system's graphics to use a 3rd person character controller and cinemachine! Source Code: github.com/sniffle6/Scriptable-Object-Inventory If you like this channel, or just Unity in general, consider joining my Discord at: discord.gg/5yj4Ecp ♥ Subscribe: bit.ly/2FRWgOi ● Facebook: bit.ly/2DhBC6I ● Twitter: Indie_Unleashed ● Supp...
Unity3D - Item Buffs/Stats | Scriptable Object Inventory System | Part 3
Просмотров 70 тыс.4 года назад
In this video ill be showing you how to add Item buffs, or item stats to your items! Source Code: github.com/sniffle6/Scriptable-Object-Inventory If you like this channel, or just Unity in general, consider joining my Discord at: discord.gg/5yj4Ecp ♥ Subscribe: bit.ly/2FRWgOi ● Facebook: bit.ly/2DhBC6I ● Twitter: Indie_Unleashed ● Support me with Brave: brave.com/cod828 ● Make a Gri...
Unity3D - Saving and Loading your Inventory with Scriptable Objects | Part 2
Просмотров 92 тыс.4 года назад
In this video we go over how to save and load an inventory, made of a scriptable object, that is populated with items (which are also scriptable objects) How to make an Inventory using scriptable objects: bit.ly/2nHUac5 Source Code: github.com/sniffle6/Scriptable-Object-Inventory If you like this channel, or just Unity in general, consider joining my Discord at: discord.gg/5yj4Ecp ● Support me ...
Unity3D - Scriptable Object Inventory System | Part 1
Просмотров 322 тыс.4 года назад
In this video we will be using scriptable objects to make an Inventory System for #unity3D Source Code: github.com/sniffle6/Scriptable-Object-Inventory If you like this channel, or just Unity in general, consider joining my Discord at: discord.gg/5yj4Ecp ● Support me with Brave: brave.com/cod828 ♥ Subscribe: bit.ly/2FRWgOi ● Facebook: bit.ly/2DhBC6I ● Twitter: Indie_Unleashed ● Make...
Unity3D Beginners - Add leveling to your game
Просмотров 16 тыс.4 года назад
Unity3D Beginners - Add leveling to your game
Unity3D - Level Scaling for beginners
Просмотров 9 тыс.4 года назад
Unity3D - Level Scaling for beginners
Project Tiny C# SNAKE | Part 5 | Creating and updating UI
Просмотров 1,6 тыс.4 года назад
Project Tiny C# SNAKE | Part 5 | Creating and updating UI
Project Tiny C# SNAKE | Part 4 | Tail Collision and Removal
Просмотров 9154 года назад
Project Tiny C# SNAKE | Part 4 | Tail Collision and Removal
#Rebootapalooza GAME JAM hosted by 'International Unity Developers' Facebook Group
Просмотров 5644 года назад
#Rebootapalooza GAME JAM hosted by 'International Unity Developers' Facebook Group
Project Tiny C# SNAKE | Part 3 | Food System
Просмотров 1,1 тыс.4 года назад
Project Tiny C# SNAKE | Part 3 | Food System
Unity3D Project Tiny C# SNAKE |Part 2| Snake Tail and Dynamic Buffers
Просмотров 2,9 тыс.4 года назад
Unity3D Project Tiny C# SNAKE |Part 2| Snake Tail and Dynamic Buffers
Unity3D Project Tiny C# SNAKE |Part 1| Input, movement, and screen wrapping
Просмотров 11 тыс.5 лет назад
Unity3D Project Tiny C# SNAKE |Part 1| Input, movement, and screen wrapping
Unity3D Project Tiny C# RELEASE!!! | HTML5, playable ads and facebook instant Games with Unity3D
Просмотров 9 тыс.5 лет назад
Unity3D Project Tiny C# RELEASE!!! | HTML5, playable ads and facebook instant Games with Unity3D
Unity TINY - Adding our games highscore to facebook INSTANT leaderboards | #13
Просмотров 1,9 тыс.5 лет назад
Unity TINY - Adding our games highscore to facebook INSTANT leaderboards | #13
Unity TINY - How to use UI's with updating scores | #12
Просмотров 1,8 тыс.5 лет назад
Unity TINY - How to use UI's with updating scores | #12
Unity TINY and Facebook Instant Leaderboards | #11
Просмотров 3,7 тыс.5 лет назад
Unity TINY and Facebook Instant Leaderboards | #11
Using FACEBOOK INSTANT SDK with UNITY TINY | # 10
Просмотров 6 тыс.5 лет назад
Using FACEBOOK INSTANT SDK with UNITY TINY | # 10
Unity Tiny - AI State Machine For Combat and Patrolling | # 09
Просмотров 2,9 тыс.5 лет назад
Unity Tiny - AI State Machine For Combat and Patrolling | # 09
Unity Tiny - Calling External JavaScript functions
Просмотров 7 тыс.5 лет назад
Unity Tiny - Calling External JavaScript functions

Комментарии

  • @coregamestudio
    @coregamestudio 22 дня назад

    Awesome tutorial and works great even after 4 years. I have one question. Would it be hard to convert this to multiplayer or is there a good video of multiplayer inventory pls? Anyone have any suggestions. I would love for this author to have something for multiplayer as his video's are clear, easy to understand! Thank you...

  • @kadinlangdon757
    @kadinlangdon757 Месяц назад

    i have a question about the first half. My game has a keypressed inventory (tab). so the inventory does not update properly unless I move smpty lots and turn them into items, or have the inventory open the whole time while I pivck up the item. workaround?

    • @kadinlangdon757
      @kadinlangdon757 Месяц назад

      I found a fix for my issue. If anyone else is doing the same, here is how I fixed it: So I wanted my inventory to be togglable so I added a bit of code to enable and disable look, mouse movement, and the activ/not active of the inventory screen. my problem came through he fact that when loaded in, the slots were not create dyet because the inventory was off by default. so, if I picked up an item it would not show in the inventory. If I open the inventory after I picked up an item it would be blank, but I could move the "empty" slot and the dragged item would be the item I picked up. So, here is how my player script looks for this function (I also changed how the save/load function works) private void Update() { HandleInventoryToggle(); HandleSaveLoad(); } private void HandleInventoryToggle() { if (Input.GetKeyDown(KeyCode.Tab) || (Input.GetKeyDown(KeyCode.Escape) && inventoryActive)) { ToggleInventory(); } } private void ToggleInventory() { inventoryActive = !inventoryActive; Inventory.SetActive(inventoryActive); Cursor.visible = inventoryActive; Cursor.lockState = inventoryActive ? CursorLockMode.None : CursorLockMode.Locked; playerLook.enabled = !inventoryActive; } private void HandleSaveLoad() { if (Input.GetKeyDown(KeyCode.O)) { inventory.Save(); equipment.Save(); } if (Input.GetKeyDown(KeyCode.P)) { inventory.Load(); equipment.Load(); } } and all I had to add to make this work is adding this bit of code to the UserInterface script: slotsOnInterface.UpdateSlotDisplay(); I added it to the start method, that way it will update on start and be able to hold the items.

  • @NoodleFoxYT
    @NoodleFoxYT Месяц назад

    how would i add crafting into this inventory system?

  • @jtmcfarland3512
    @jtmcfarland3512 Месяц назад

    Seems like there was a place I found Items.Something was supposed to be changed to Items.data.Something which makes it seem like your IDs may have been pulled from multiple locations. IDK None of this works with my game anyway because I'm not using sprites.

  • @jtmcfarland3512
    @jtmcfarland3512 Месяц назад

    I realize this video is getting old, but almost nothing works because I've already got a player controller where the mouse turns the player. There is no way to click or drag objects with the mouse. I think a better solution is to just require changing scenes where the input system is different. Also, it would be nice if items would drop back onto the terrain instead of destroying themselves if you drag them off the inventory.

  • @zero-to-100
    @zero-to-100 Месяц назад

    As a non-English speaker, Other lectures are hard to listen. However, this lecture is well explained and easy to understand to your voice full of passion and confidence. The quality of the lecture is very good. I'm glad I searched for the ScriptableObject Inventory lecture before implementing the inventory function as "Playerprefs". (It's terrible just to imagine.) Best lecture ever, Best teacher ever. I shared it to another developer. Have a great day.

  • @fishiesrock1294
    @fishiesrock1294 Месяц назад

    It doesn’t set the object to default, it sets it to food Edit: same with equipment, it sets to equipment but when I name it it sets to food

  • @stylaender
    @stylaender Месяц назад

    Nice videos dude!

  • @rosterious
    @rosterious Месяц назад

    17:36 im having a issue when i move the square to the sphere neither the sphere gets destroyed and the item doesn't add to the inventory. Ive gone through all the scripts like five times and there are no mistakes, there are also 0 errors or anything in the console. All the colliders are set correctly, I have no idea what is causing the issue. Could you maybe help?

  • @ana-zp7er
    @ana-zp7er Месяц назад

    Hi, help? my inventory just spawns non stopping inventoryPrefab as soons as I collide to some object... and gives this error too: KeyNotFoundException: The given key '0' was not present in the dictionary. System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key)

  • @LesP56
    @LesP56 Месяц назад

    I'm not sure, at this point, what the prefab is for in this video. If it's for just a "picture" of the item, why don't we just use a Sprite, instead.

  • @bowshattersg7776
    @bowshattersg7776 2 месяца назад

    Thanks for the series, but here's where I hit a brick wall sadly, this just doesn't work for me no matter what I do. The items I picked up ended up overriding each other's item slot, which seems to be an issue no one else faced so far. I checked through the entire code and couldn't find any mistakes. Guess I'll have to settle for the old system from the previous part in the series, and trial and error the rest of the features implemented in the rest of the series.

  • @risingforce9648
    @risingforce9648 2 месяца назад

    how can I fix the Event System in 2024? I got a canvas with EventSystem and standalone input module, but I can not drag and drop items inside the ivnentory... the half of this video is not work for me I recheck the video , my code...probably I need to put something in the "trigger" component?

  • @risingforce9648
    @risingforce9648 2 месяца назад

    hey this works also for a 2D project? thanks

  • @ketron8759
    @ketron8759 2 месяца назад

    i got an error when i load the Inventory: IndexOutOfRangeException: Index was outside the bounds of the array. InventoryObject.Load () (at Assets/Scriptable Objects/Inventory/_Scripts/InventoryObject.cs:127) edit: I solved it by simply assigning two different save paths to the player inventory(item object) and the player equipment(item object)

  • @toaitran7444
    @toaitran7444 2 месяца назад

    Man, there are so many inventory issues that have been bothering me for 2 weeks, today I'm so lucky to have found your video. I like the way you explain when writing code, as there are many techniques if you don't explain, then I wonder: how can I learn this on my own? I love you! Wishing you many interesting experiences in life!❤

  • @TheAtticus82
    @TheAtticus82 2 месяца назад

    Here 4 years after upload and this tutorial is still amazing. Thank you!

  • @maryverson
    @maryverson 2 месяца назад

    thank you!

  • @Federal_TK
    @Federal_TK 3 месяца назад

    Trying to follow the tutorial on unity 2022 lts and its working

  • @VeronikaWortham
    @VeronikaWortham 3 месяца назад

    Lets count how many times we can say the word item in a single video!!

  • @xsten4233
    @xsten4233 3 месяца назад

    Do you have to make a prefab for each inventory item? can't you just give it a child or something that has a sprite of the item?

  • @funkynormalcat988
    @funkynormalcat988 3 месяца назад

    why do you named some variables with an underscore before?

    • @fanerv3304
      @fanerv3304 Месяц назад

      I guess because they are private, not public

  • @fred1541
    @fred1541 3 месяца назад

    That's good~ I have been searching for the way how to make my game more flexible while managing so many items in one character

  • @Geckotr
    @Geckotr 3 месяца назад

    Use grid layout group component of Unity for organizing the position of the slots, instead of organizing them with code. That's much practical and it will save you time

  • @iamrm1011
    @iamrm1011 3 месяца назад

    how to make maxstackable

  • @drake_eric9799
    @drake_eric9799 3 месяца назад

    yes finally im done the letter on code its not Asset is Assets LoadAssetAtPath("Assets my eye to blurb

  • @drake_eric9799
    @drake_eric9799 3 месяца назад

    i think my folder was wrong

  • @drake_eric9799
    @drake_eric9799 3 месяца назад

    i build it and run load is not working database is keep reseting to no database

  • @drake_eric9799
    @drake_eric9799 3 месяца назад

    ah its null reference coz data base is reset whet you hit play

  • @drake_eric9799
    @drake_eric9799 3 месяца назад

    i got bug now the sphere is null reference

  • @drake_eric9799
    @drake_eric9799 3 месяца назад

    help pls build and run is to long loading maybe i skip making folder to other asset script

  • @drake_eric9799
    @drake_eric9799 3 месяца назад

    space and enter not working but other button working

  • @drake_eric9799
    @drake_eric9799 3 месяца назад

    finally im done yes

  • @drake_eric9799
    @drake_eric9799 3 месяца назад

    the image not show in inventory screen and cant get the exact location to put it i learn but i think may canvas is wrong

  • @drake_eric9799
    @drake_eric9799 3 месяца назад

    its not identify its identity and no public in Vector3 i guest you want to know who can read codes

  • @drake_eric9799
    @drake_eric9799 3 месяца назад

    .identify and public in Vector3 is bug

  • @drake_eric9799
    @drake_eric9799 3 месяца назад

    not working in capsule the item is not destroyable what should i do

  • @jbear40
    @jbear40 3 месяца назад

    whew, finally did it. Furthest ive gotten in my game dev journey. Super euphoric. Thankyou goodsir :D

  • @jbear40
    @jbear40 3 месяца назад

    30:00 Any tutorial 'series' you pick out a hat will have cliff hangers and unanswered errors. And shortly after coding and looking over it with peers i always get "why did you do it like that?". This is the only series ive come across where the person in the tutorial 1. isnt making any money 2. extremely in depth clean code awareness and 3. tested and researched the system before he went public with it. I dont know most of what im coding, but i know what it means. This code isnt gonna get thrown away. Thankyou goodsir

  • @SlipperyVeins
    @SlipperyVeins 3 месяца назад

    I hope at some point you come back to the inventory system, there's a bug (maybe it's just me) where existing inventory slots dont update on start. Once I stopped clearing inventories on exit app, existing (and occupied) slots were empty on start. Also there are more features it would be neat to have, like max stacks of items, adding slots to the inventory during runtime, chests (creating and saving), etc. Anyway hope you're doing well.

  • @Bartocock
    @Bartocock 3 месяца назад

    Great video!

  • @SlipperyVeins
    @SlipperyVeins 3 месяца назад

    Im 15 years late on this, but i fixed the database shenanigans by moving database methods to a mono script. There's something cursed about on before and after serialization methods.

  • @jbear40
    @jbear40 3 месяца назад

    I was following well in this tutorial up until somewhere in the middle of this video. Somehow, my inventory only spawns 1 slot. That slot doesnt do anything as a button(i believe i got to like 44 minutes or something before I realized something was up) and there are no items that appear when i pick them up. The player inventory shows that i have picked it up, what could i have done to break the display/slot portion of this code?

    • @jbear40
      @jbear40 3 месяца назад

      NullReferenceException: Object reference not set to an instance of an object DisplayInventory.AddEvent (UnityEngine.GameObject obj, UnityEngine.EventSystems.EventTriggerType type, UnityEngine.Events.UnityAction`1[T0] action) (at Assets/Player/Inventory System/Inventory/Scripts/DisplayInventory.cs:83) this is the line of code throwing the error: AddEvent(obj, EventTriggerType.PointerEnter, delegate { OnEnter(obj); });

    • @jbear40
      @jbear40 3 месяца назад

      SOLVED: Code was correct, the event click thing was on the inventory panel, not the prefab like it was supposed to be

  • @marcelosommerlatte2238
    @marcelosommerlatte2238 4 месяца назад

    I was having issues with this and spent an entire day figuring out what was wrong. Perhaps Unity has updated something since the video upload. Unity automatically resets the created object after its creation. To manage this, use the Reset() method instead of Awake() to ensure proper initialization and prevent unintended resets. By doing so, each time you reset this object, it will utilize the default values configured in your script.

  • @Dmitri-kz7gs
    @Dmitri-kz7gs 4 месяца назад

    Hi! Can i make, that saving system is working every second(update()), and load the inventory in start?

  • @AzethPlays
    @AzethPlays 4 месяца назад

    Still the go to series for a good inventory system.

  • @Stratoscaster
    @Stratoscaster 4 месяца назад

    Ran into a couple of hiccups, but those were largely my fault as I slightly deviated my design from yours. I think it'd be useful to include a short segment on "pitfalls you might run into". Thank you so much for this tutorial! Great job!

  • @Stratoscaster
    @Stratoscaster 4 месяца назад

    For anyone who had issues with the position of the slot images/text, you might want to check out setting the anchor and anchored position instead of using the .position property. The anchored position is relative to the parent component (the inventory screen), instead of the overall position.

  • @Stratoscaster
    @Stratoscaster 4 месяца назад

    Great tutorial, I know I'm late to the party but instead of setting X_START/Y_START, you can set the anchor of the original prefabs & variant prefabs to top-right in the Inspector. Much faster to do, and then when you create additional variants from the original they will inherit the anchoring.

  • @caligulajones1237
    @caligulajones1237 4 месяца назад

    how many times did i spell dictionary wrong while following this? 3 times