Quantcast
Channel: Questions in topic: "slot"
Browsing index pages (109 articles)

gameObjects transform on top of each other

i am working on a card game which you have to build a deck everytime before starting a match but everytime I try to manage my cards in the slots they just transform on top of each other.here the code`...

View Article


Slot Prefab instantiating outside of set parent

I'm working through a tutorial from a few years ago so it's doubtful I'd get any help from the original video, so I turn to you. This script is attached to an image inside of a canvas, inside of...

View Article


Select slot with same key

Hello, I have an inventory in my game and when the player plays with controller, it switches to the controller input. Well with the keyboard, it is simple. the player can select which slot he want to...

View Article

Select next slot with keybutton

Hi all, I got stuck with a issue. For my game, I want to make my game work properly on a ps4 controller. I have 4 slots for the player to carry weapons or items. What I try to do is, whenever the...

View Article

I'm having Unity go through a large number of iterations using for loops. How...

I'm running slot math simulations in Unity using for loops which iterate through a large number of random screens. I typically run 10 to 100 million simulations in a single run which, depending on the...

View Article


Detection of Overlap is offset by about 16.5f and increases based on scale.

Two scripts one for Slot one for Item. _ **Issue** Once scale of Item goes over 4x4 the Overlap detection goes off by about 16.5f. Ideally the detection be right and on point no matter the scale even...

View Article

Getting the sum of random values from Dictionary

Hello all! Coding C# question here! I have inventory with 4 different objects: Lemon, Apple, Coffee, Mango each object has different score: 20, 40, 60, 80 (respectively). I want to use dictionary to...

View Article

Getting the sum of random values in the dictionary

Hello all! Coding C# question here! I have inventory with 4 different objects: Lemon, Apple, Coffee, Mango each object has different score: 20, 40, 60, 80 (respectively). I want to use dictionary to...

View Article


Change object being affected by onPress() interaction,Apply functions...

I have a menu attached to the palm of my hand, which has some buttons that trigger some functions I coded (like rotation of an object around specific axis, for example). Those functions are applied to...

View Article


Can I keep the gui.box in a variable?

Hi everyone. I am working on the 2D slot game. I created the pictures with GUI.Box in my code. My slots are like the 3x5 matrix. I wanna write win method but it must be like that: picture in the first...

View Article

Best approach in making Inventory UseItem functionality.

Hello everyone, I've been trying things out lately and ran into one 'issue'. I made an inventory system. Everytime you right click with mouse on the inventory slot that contains an item you get a menu...

View Article

Problem with slots [Album of cards]

The drag and drop is done and paste like figures but it is not a method to leave as fixed figures for a specific slot Would anyone know to answer a way to leave the figure fixed to that slot?...

View Article

Object move to slot .....

I want move object to slot than it will print "OK" and if i move this object from slot it will print "No"..... HELP PLZ . . Thz in advance .. I'm a new programmer :) Sorry for this question .!

View Article


item goes behind canvas when dragging.

Hello, I made a drag and drop script for items. I have one canvas for the inventory and one for the crafting system. you can drag items into one of the slots in the inventory and into one of the slots...

View Article

Tooltip offset when hover over object with Scale with Screen Size

So I am having problem with on hover tooltip UI element to follow mouse cursor with some offset. I do not want for ui element to be centered on cursor while following it, but to have some offset...

View Article


Can't figure out how to code equipment slots

I'm trying to make the item icon in my equipment slots show up when an item is equipped, and I can't find a way to reference the other scripts in my EquipSlot script. I tried maybe referencing it as an...

View Article

Access to slot Item

I want to get the "Item id" to put in the > (Slot1.GetChild(0).tag == "Item") so i know what item its inside the slot and then spawn it. if (Input.GetKeyDown (KeyCode.Alpha1)) { if...

View Article


slide the item left -right sides in inventory?

hi, In inventory , when i move and put away "x" item to "y" item; I want "x" replaced that slot (instead of "y") and "y" moves right or left available slot automatically. How can I do that? Please.. In...

View Article

Problem when scrolling through inventory slots

Hi, I'm almost finished making my inventory system, and I am using the mouse wheel as a method for the player to scroll through their inventory.slots. The problem here is that the GUI that hovers over...

View Article

Check if items are in correct slot using Unity3D UI

I am developing a game in which there are several slots on screen and after performing real life calculations the player chooses the items from its inventory and add it to certain slot present. Now...

View Article
Browsing index pages (109 articles)


Latest Images