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.
Hello, Usually, this issue comes from the fact that your script • Has a different name that its file (public class MyClass must be in a file...
Hello, there are several approaches. You can use standard GameObjects, but managing the text would be a tad trickier. You can do it with canvas,...
Hello, I've only watched at your FireMissile method and I have to point out something. Think through what the values are at each steps: var...
Hello, we can't do much with just the error code. What error? At what line? If I had to guess, I would go for this, right here: should be for...
I haven't read the whole thread but this line jumped in my eyes. score --; would reduce score by 1. score -= 10; would reduce it by 10.
It's not a dichotomy. Most interfaces deal with public setters of private variables. Even your proposition would also work with both interfaces...
Hello, When you're not absolutely certain something will never be null, you should always check for null when using something. I know, it's...
To be fair, I didn't actually "know", but reading this : I assumed he used Alt+Enter to make the error on Vector3 go away, and with such...
Hello, please use code tags : so it could be readable. Your ifs' are outside everything. They need to be into a method. I'm not sure what you...
I should have read better, my bad. Instead of activating / deactivating a button, you can check for Input.GetKeyDown....
Hello, That is some basic "form" verifications. Usually, incredibly good programmers will use regular expressions, to check if it's a proper...
Hello, To be very strict, it would be better that HP remains a private variable, so you can handle internally what happens when they die. Maybe...
Hello, for those in need of solution for this issue, I would bet it's because Vector3 comes from the wrong namespace; Vector.forward needs using...
Hello, a priori, in terms of workability, none. Any class is basically a variable container. If it suits you better to make them components, why...
That explains it ! I'm not working a lot with 2D, sorry. Unity is checking for distances to compute colliders (as far as I know), which is the...
Most NullReferenceException are ;) Glad you could find the issue !
Hello, there is many ways to achieve this. if your collider is in the room that raises sanity, you can use OnCollisionStay private void...
Hello, well it can't be much: GameObject.FindGameObjectWithTag("Components") is null or...
Hello, The slowdown caused by colliders (I've never heard of FindNewContacts() and can't seem to find it in manual?) is often their shapes....
Hello, Jump sets playerVector.y to -1, which is apparently called all the time, and Movement sets playerVector.y to 1 (-(-1) I get why you're...