Тёмный

How To Pick Up an Item - Unity 

Gunzz
Подписаться 1,1 тыс.
Просмотров 31 тыс.
50% 1

Subscribe & Like for more Content like this.
-------------------------------------------------------------
RU-vid : / gunzzyt
twitch : / gunzz___
FlashLight: assetstore.unity.com/packages...
FPS Controller: assetstore.unity.com/packages...

Игры

Опубликовано:

 

9 окт 2022

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 69   
@its_nuked
@its_nuked 2 месяца назад
Felt on the family interrupt and the jet/text outline was funny xDDD Ty man :D
@Infinity-nw1jt
@Infinity-nw1jt Год назад
I could not figure this out before and now that I saw that video I want to thank you so much 🙏 ❤❤
@martjaspersalazar2258
@martjaspersalazar2258 Год назад
Your tutorial is really works my friend. Thank you!
@GunzzYT
@GunzzYT Год назад
You're welcome, im glad it helpt
@t.sandwich
@t.sandwich 2 месяца назад
Dude this is so helpful, thank you :)
@francescogamba1301
@francescogamba1301 10 месяцев назад
If you are having issues with the pickup part just add a rigid body to the battery and disable gravity, everything should work correctly
@beefytime1374
@beefytime1374 9 месяцев назад
Thank you soo much for this tut it really works and is super easy to follow and i didnt even have a code error even though i still coded i tmyself... thankyou
@adammland6924
@adammland6924 2 месяца назад
thx its very helpful thx very much ... thanks Gunzz very cool . i subbed and liked btw
@emeraldwas9k
@emeraldwas9k Год назад
this is really easy thank you and you kinda got me scared at the end lol
@hidings
@hidings Год назад
Great tutorial, thanks!
@LaneDT836
@LaneDT836 10 месяцев назад
Thanks, so helpful!
@galberger3937
@galberger3937 Год назад
Hi. can you show how to use a pick up a gun that have a flshlight, how to turn on and off the light of the flashlite and how to shoot while useing the new input system?
@mohamedrabi3928
@mohamedrabi3928 10 месяцев назад
great work
@alexplaytop
@alexplaytop 2 месяца назад
Would be cool to explain how to drop it, after pick up ))
@abdeali5341
@abdeali5341 3 месяца назад
YOUR TUTORIAL ARE REALLY HELPFUL THANKS FOR UPLOADING
@hh5559
@hh5559 4 месяца назад
Good tutorial but what I'm struggling is getting the objects to disappear/appear for when one object is dragged into the trigger (OnTriggerEnter) I'm trying to drag am object in using Raycast so I can place it in a specific place, using the two-items trick but it won't work for some reason. The original object I'm holding won't disappear and the item that's placed won't appear
@laetusbeats
@laetusbeats 5 месяцев назад
ik ruik een beetje Nederlands, dankjewel btw je hebt me echt geholpen!
@YusafAnimations
@YusafAnimations Год назад
bro that is genius imma test this tomorrow
@MrAndreaseidem
@MrAndreaseidem Год назад
what are you doing here?
@ACtudio001
@ACtudio001 11 месяцев назад
You are the best Thanks you very much!
@johnlouisedelacruz8905
@johnlouisedelacruz8905 Год назад
thank you so much for your tutorial and it really works!! Do you also have a video on how to drop items?
@GunzzYT
@GunzzYT Год назад
You're welcome, maybe i will make a drop system in the near future stay tuned 😁
@user-fn3tw1nj3e
@user-fn3tw1nj3e 6 месяцев назад
does not seem to be working for me, can I get some help. the code is not allowing me to pick up the torch?
@Ganiovi
@Ganiovi 5 месяцев назад
can we use this method to add multiple items to our player and to pick each one at the different time ?
@mediamermaid333
@mediamermaid333 Год назад
Thank you!!
@b4llistick1dYT
@b4llistick1dYT Год назад
Thank You!
@RadioTelevizijaPrijecani
@RadioTelevizijaPrijecani Год назад
Thanks man
@parthacodes5893
@parthacodes5893 Год назад
op now i wil implement my own thing like change it to a key and then also make that key trigger doors and chests
@tormipuvi4703
@tormipuvi4703 9 месяцев назад
How do I drop it?
@M4attee_YT
@M4attee_YT Месяц назад
TI ADORO, SEI IL MIO SALVATORE. NON TROVAVO VIDEO CON IL TASTO "E" PER RACCOGLIERE GLI OGGETTI (traduce to english)
@GunzzYT
@GunzzYT Месяц назад
Ik hou ook heel veel van jouw! graag gedaan. (translate to english)
@REBELHEADGAMES
@REBELHEADGAMES Год назад
Is there any chance you can make it that you can ONLY TOGGLE it on and off when you are holding it? Kind regards.
@gamerz3d386
@gamerz3d386 Год назад
Try to change the 2nd if condition that is instead of getkey you can try onpresskey Something like that and write else after that condition to set false Hope this helps Thank you
@malachipeck7450
@malachipeck7450 Год назад
Whenever I try to drag a gameobject to the script it wont let me do it with any objects
@DaDylanMachine
@DaDylanMachine 8 месяцев назад
Great tutorial, I appreciate it! Quick question, do you believe this method would work when there are multiple objects in the game? I worry that having multiple objects on the controller at all times could pose an issue.
@GunzzYT
@GunzzYT 8 месяцев назад
It only works for picking up a single item. If you want to be able to pick up multiple objects you need to make a empty list and fill the list with the objects that you are picking up and make a riffle trough objects system.
@DaDylanMachine
@DaDylanMachine 8 месяцев назад
@GunzzYT got it, good to know. Thanks for responding
@GMlife317
@GMlife317 4 месяца назад
umm for me i dont need to press E its just as soon as you get in the range it gets on your hand
@Un_tizio1
@Un_tizio1 3 месяца назад
I watches this video like 4 times, i used the code you put in there, i put the tags, the name and everything, but the camera part on the flash light Just doesnt exist for some reason and if i try to start my game It says "All compiler errore have ti be fixed before you can enter playmode! I swear i checked something like 5 times but It Will Say that Every single time. I even tryed to cancel that script and made a new One but there Is Always the same problem. But as i see It worked for everyone so i Just dont see why It doesnt work. Tell me way to fix It please
@saadstj7147
@saadstj7147 Год назад
This works just for one item. I tried to pick up more than one item it is not working.
@ROUGETHEBAT456
@ROUGETHEBAT456 Год назад
Do u have the script for pickup flashlight 🔦
@Rexu3030
@Rexu3030 Год назад
I add this text system in my game and its not working. I have script from your film: "How To Pick Up and Drop Items"
@lfigure1718
@lfigure1718 Год назад
while I dragged in my script, I do not see an option like "Flash Light On Player" for me all I see is the "Script PickUpFlasFlight" how do I get the "Flash Light On Player" while dragging in the script?
@GunzzYT
@GunzzYT Год назад
make sure there are no errors and make the Variables Public not private.
@lfigure1718
@lfigure1718 Год назад
@@GunzzYT Got it fixed, turns out there was a bug completely destroying our code but we manage to fix it. Thank you!
@Tricksy_2014
@Tricksy_2014 Год назад
With the OnTriggerExit part, it does not work for me. Once I enter, the text stays there. Does anyone have a fix for this?
@ROISZ_Editz
@ROISZ_Editz 8 месяцев назад
Chat_GPTcan do that
@user-gb6fk5rz1z
@user-gb6fk5rz1z 4 месяца назад
Hi, for some reason my player can't enter inside the box collider of the flashlight, my player is set to the "player" tag, and all the code is correct. Because of this, my text doesn't appear because the player can never enter the confines of the box collider. Are there any components on the player other than the capsule collider and the rigidbody and all the scripts?
@GunzzYT
@GunzzYT 4 месяца назад
Make sure isTrigger is selected on the boxcollider! if its not your player cannot enter the trigger.
@user-gb6fk5rz1z
@user-gb6fk5rz1z 4 месяца назад
@@GunzzYT Yes! That was the issue, thanks you so much, I'm new to unity. Great video by the way!
@ghostarda6355
@ghostarda6355 Год назад
hi great tutorial! but i want the items to be in the inventory of the player, how do i do it?
@GunzzYT
@GunzzYT Год назад
Thanks, stay tuned i might make an inventory system tutorial soon.
@ghostarda6355
@ghostarda6355 Год назад
@@GunzzYT wow this was a fast reply and thx
@haeqallz19
@haeqallz19 5 месяцев назад
bro if you dont mind, could you teach on how to drop the object ?? really appreciate it cause might help me in my fyp
@GunzzYT
@GunzzYT 5 месяцев назад
Here ya go ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-V9VbwpsvmZo.htmlsi=hbQDHqyHOAsWVa7_
@dikshantverma680
@dikshantverma680 13 дней назад
I've picked it up, now how to drop it, mannnn
@yourexorcist4436
@yourexorcist4436 4 месяца назад
Nice tutorial for picking but as i can see...the light and flashlight doesnt follow you when you rotating the camera...maybe an update of this would be helpfull Thank you very much.
@GunzzYT
@GunzzYT 4 месяца назад
Child it under your Main Camera, that should do the trick.
@lonk199
@lonk199 Год назад
i smell nederlands (good tutorial)
@GunzzYT
@GunzzYT Год назад
Very good gevonden 😂
@YepMilkyArk
@YepMilkyArk 3 месяца назад
Can u send Code?
@avi-yd6ub
@avi-yd6ub 21 день назад
packup and drop
@JunaBot
@JunaBot 7 месяцев назад
version mobile?
@alisharafeddine3259
@alisharafeddine3259 Год назад
why did you do a pick up video without showing how to drop it xd
@GunzzYT
@GunzzYT Год назад
Srry boss ill make a video about that a soon as possible. Pls forgive me 🥺
@mr-maschi
@mr-maschi 2 дня назад
Event though it works, this is absolutely not how you. do it!
@alexplaytop
@alexplaytop Год назад
I got like this problem: "Internal: Stack allocator ALLOC_TEMP_MAIN has unfreed allocations, size 3565014". Any thoughts???😊
@madduckling4436
@madduckling4436 11 месяцев назад
your tutorial is great sadly one thing I have an issue with , the method you're using will make the player pick up the flashlight regardless of where the player is looking...
@GunzzYT
@GunzzYT 11 месяцев назад
Its a basic tutorial, you can use a raycast to check wether the item/object your looking at can be interacted with.
Далее
How to Collect Items (Unity Tutorial)
14:23
Просмотров 54 тыс.
Fazendo MÚSICA com COISAS ALEATÓRIAS 🎵
00:24
Просмотров 4 млн
У МЕНЯ НЕТ ДРУЗЕЙ #shorts
00:34
Просмотров 479 тыс.
Unboxing the Skullcandy Crusher ANC 2
9:17
How To Pick Up And Drop Items | Unity Tutorial
11:17
How to Pick Up + Hold Objects in Unity (FPS)
3:42
Просмотров 19 тыс.
How to make an Interaction Feature (Unity Tutorial)
9:55
Dark Blade V6⬆️⬆️😈| Doge Gaming
0:36
Просмотров 672 тыс.