How To Pick Up an Item - Unity

preview_player
Показать описание
Subscribe & Like for more Content like this.
-------------------------------------------------------------

Рекомендации по теме
Комментарии
Автор

Felt on the family interrupt and the jet/text outline was funny xDDD
Ty man :D

its_nuked
Автор

I could not figure this out before and now that I saw that video I want to thank you so much 🙏 ❤❤

Infinity-nwjt
Автор

Your tutorial is really works my friend. Thank you!

martjaspersalazar
Автор

So helpful and very easy to follow! Keep it up!

Ambersew
Автор

Dude this is so helpful, thank you :)

t.sandwich
Автор

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

beefytime
Автор

does not seem to be working for me, can I get some help. the code is not allowing me to pick up the torch?

fntwnje
Автор

If you are having issues with the pickup part just add a rigid body to the battery and disable gravity, everything should work correctly

francescogamba
Автор

thx its very helpful thx very much ... thanks Gunzz very cool . i subbed and liked btw

adammland
Автор

this is really easy thank you and you kinda got me scared at the end lol

emeraldwask
Автор

Would be cool to explain how to drop it, after pick up ))

alexplaytop
Автор

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?

galberger
Автор

YOUR TUTORIAL ARE REALLY HELPFUL THANKS FOR UPLOADING

abdeali
Автор

You are the best Thanks you very much!

ACtudio
Автор

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

hh
Автор

ik ruik een beetje Nederlands, dankjewel btw je hebt me echt geholpen!

laetusbeats
Автор

For anyone who is lazy just like me. I wrote the script for you guys. also it says block for example pickupblock. you dont have to replace block with the name of the item just leave it. becuase it will still work. also this one is the one with the one that says e to pick up. if you dont want that. just dont add a canvas. alright. enjoy!









using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class PickUpBlock : MonoBehaviour
{
public GameObject pickUpText;
public GameObject BlockOnPlayer;

void Start()
{
pickUpText.SetActive(false);
}

private void OnTriggerStay(Collider other)
{
if
{
pickUpText.SetActive(true);

// Check if 'E' key is held down to pick up the Block
if (Input.GetKey(KeyCode.E))
{
gameObject.SetActive(false);

pickUpText.SetActive(false);
}
}
}

private void OnTriggerExit(Collider other)
{
if
{
pickUpText.SetActive(false);
}
}
}

NoobManBeast
Автор

bro that is genius imma test this tomorrow

YusafAnimations
Автор

op now i wil implement my own thing like change it to a key and then also make that key trigger doors and chests

parthacodes
Автор

can we use this method to add multiple items to our player and to pick each one at the different time ?

Ganiovi