A Unity ID allows you to buy and/or subscribe to Unity products and services, shop in the Asset Store and participate in the Unity community.
Separate names with a comma.
Hey all, been working on a first person game for fun, this is my first time dabbling in the FPS genre. Anyway, I threw the standard asset first...
Any way to make the cmd.exe stop popping up whenever I open a script in VSCode? I'd love to use this software but that drives me absolutely crazy....
So I basically have enemies. I want them to be heading toward my "goal" object, unless a "defender" object is within a certain range of them, in...
Hey all, so I have buttons in my store that are designed to add some things to an array.Here is the code that is run when the button is clicked:...
I haven't had time to change them, right now they're a copy paste. They're all going to have very diferent functions from one another once they're...
FIXED! It seems that I needed to instantiate my object like this: private void instantiateAtMousePosition(GameObject objectToInstantiate) {...
Okay so I'm noticing that whenever I hit the button that calls item1(), it turns isPlacingObject off. Once I let go of the button, it turns it...
I'll try that. I know how to use collections/arrays/lists ect. I'm using buttons with the new UI system, and they don't let you do anything with...
Hey all, I have an inventory script as seen here: using UnityEngine; using UnityEngine.UI; using System.Collections; public class Inventory :...
Wow I didn't even think of that. I fixed it and it cut out a few lines of code. Thanks for pointing that out.
Because items might be bought in any order, and they need to go to wherever the first empty slot is. I figured it out, I'm so dumb. In my array I...
getEmptyIndex is working fine, it returns zero when nothing is in the array. It's a serialized array so I can't look for null, otherwise I'd use...
So this snippet of code is intended to add a basic turret object to my inventory. public void addBasicTurret() { invItem basicTurret =...
Wow, that worked perfectly! Thanks a bunch.
Problem is, when I do this, my array doesn't show up in the inspector, which is causing me a lot of hassle. I tried this originally but it...
Alright so I have a simple "store" UI that pops up when you hit a key. When you buy something by clicking one of the UI buttons, I want it to add...
Hey all, So I have an Enemy script from which all the enemies that I create are supposed to inherit from. I did this so that I would not have to...
Hey all, I'm looking to buy this laptop:...
b... bump :c
Hey all, I'm starting a new project, which is first person. I'm wondering if it's worth it for me to code my own player, or to just stick with...