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.
I'm working on this game, and the player character's gun is supposed to have a shot limit, as seen below from the script I have in mind. (1:...
I'm working on this script, and this is a line of code that's supposed to make the "field" gameObject go towards another. field =...
RESOLVED: So the answer was a lot more simple on my end. It turns out that the was using the scene "Level1", even though that scene doesn't exist,...
So I'm working on this shmup, and this is what it's supposed to look like... https://imgur.com/a/Qz2gQ7O But what's below is what it actually...
I'm working on this laser for a video game, and it has a ring and the beam part. Both the ring and beam use the same custom shader:...
I have this Atan2 function, and it's meant to change the rotation of an object to an accurate position: public float ydir; public float xdir;...
Well, I would like to try something like that, but I want the rotation of the game object in question to be consistent in how fast it moves.
Alright, so I added some Debug.Log statements into moveUp and moveDown, and I'll also be adding more context to the code, since this is a...
So I have this line of code in a game I'm working on, and it's meant to invert a float variable (named ospin) when it rotates from a positive...
Yeah, the GetKeys will also be used for movement as well, which is why I would prefer if it worked in the opposite way as well.
So, I'm working on a project for this year's Halloween, and I decided on a Fantasy Zone-like game where you go up against a 5-10 minute boss....
So I have this script that's meant to detect the amount of rotations the drone base does, and what it's meant to do is increase the "rotamount"...
So I have this line of code for my game: foreach(SpriteRenderer sprite in sprites) { sprite.color = Color.HSVToRGB(m_Hue,...
So I have this projectile script in my game, and it's meant to bounce around the screen until it runs out of either one of two variables: void...
Alright, I can see that now. What can I do to assign it to the copy itself, then? EDIT: Alright, I was able to get it down by using a...
So I have this line of code that's meant to spawn and object, and then make the spawned object have the rotation of the object that spawned it:...
Ok, so i figured out what was the issue: I didn't identify what "sprites" was. sprites = transform.GetComponentsInChildren<SpriteRenderer>();...
foreach(SpriteRenderer sprite in sprites) { sprite.color = new Color(1, 1, 1, 1 - scale); } So this line of code is...
Alright, that worked! Thanks for the tips! EDIT: Actually, one more thing: I'm not sure how to make it assign to an ArgoMovement script (the...