Quantcast
Channel: Questions in topic: "item"
Browsing all 274 articles
Browse latest View live
↧

Add Item to inventory - Shop UI intro and setup

Hi there, as mentioned in the question, I did the Shop UI live training and added a player inventory and a vendor inventory to my game. Now I messing around picking up an item and put it in the players...

View Article


Items: Class or scriptableObjects?

Hello Human Beings, Should an item be created from a class (struct) of general item? Or should it be a ScriptableObject all by itself? Thanks in advance, Ethan

View Article


Item Drops on enemy spawn and death?

so I have a health potion to drop on the enemy death when it basically collides with my other objects and the giving it a random chance 25% at the moment to drop the item (potion). but currently it is...

View Article

how to acquire items in the vr game

I want to acquire an item when I saw that item for more than 3 seconds. but I don't know about Unity, I don't know what function I should use. Can you help me?

View Article

What's the name of this system?

Hello there! I'm new on unity and just begin to code a simple and generic horror game for study in Unity5. I'm brazilian and I can't found (in english) the name of the item system that we found on...

View Article


Disable a dropdown option.

So I'm making a weapon switching dropdown to change your weapon. And the thing is, I want the weapons to unlock on a specific level. The level is stored in my GameSettings class, I know how to access...

View Article

Should Items spherecast

I'm trying to implement pickable items using a button. I've implemented the check of "Player facing direction of item in certain angle". However, I wanted to implement the distance feature which would...

View Article

Random.range, winning Items, and "Scaling system"

Hey gang I know how to use Random.range to get a Item drop rate act, I was wondering hot to make it Scale with your Level So as you Level up Items become easier to get? RandomRR = Random.Range (0,...

View Article


Store item images in database or on device?

Hey there, I have some questions when it comes to store "images" / "icons". Imagine we have an online multiplayer game on android. And we got 1000 items which all have an icon. The items are stored in...

View Article


Can't seem to find a good, working way of instantiating (dropping) items...

I got the basics of my item system working, however I can't figure out how to re-instantiate an item from the inventory into the world again in order to drop it. My current problem is the fact that the...

View Article

How can I spawn an item after killing a wave of 6 enemies?,How can I spawn an...

Hi, I'm at my wits end with this one trying to figure out how to end this argument. I'm trying to spawn an item after the last enemy has been killed by the player and all enemies in the wave must also...

View Article

MissingReferenceException Help Please!

MissingReferenceException: The object of type 'Image' has been destroyed but you are still trying to access it. So when I pick up an item for the first time it works okay, but after I reload the scene...

View Article

uNet, doubt Pickup and drop objects

Hi there! I'm learning uNet, and i'm trying to do the next: 2 players on a scene (player1 and player2) and one item spawned on the floor. Player1 pickup the item (and change values like parent,...

View Article


Item Info UI pops up when hovering over a gameobject

I'm trying to replicate a similar effect to Fortnite where a little blurb about the item pops up when you hover over it. ![alt text][1] [1]:...

View Article

How to hide an object from array instead of removing it?

I have successfully made it so that when a certain number of commands pass, item i from my array is removed, and I got this to work, though this isn't exactly what I want to do. It would be much easier...

View Article


Item dropping/instantiating isn't working

I have the removal from inventory working, but trying to get the actual item prefab to show up on the ground isn't working. I'm getting a null reference every time that I try to drop an item. Here is...

View Article

Very basic Inventor, Item and Slot

Hi all my friends! In these days I have seen many tutorials to create an inventory. I found everything very difficult to assimilate, so today I proceeded to a solution "made at home". I have a player...

View Article


Item class system with inheritance, how to put them into the world?

This is my first time using inheritance to write an item system. For example, I have these two classes: [System.Serializable] public class Item { public string name; public int weight; }...

View Article

How to add item to my inventory when I pick them up?

I'm somewhat new to Unity and game development but I keep getting this error: NullReferenceException: Object reference not set to an instance of an object HUD.InventoryScript_ItemAdded (System.Object...

View Article

How to make a deep copy instead of a shallow one?

Hi everyone, so as of right now I am making a shallow copy of an item in a list. When I click on this item in game, a copy is made of it and that copy is put in another list. The problem is, when I...

View Article
Browsing all 274 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>