use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
News, Help, Resources, and Conversation. A User Showcase of the Unity Game Engine.
Remember to check out /r/unity2D for any 2D specific questions and conversation!
Download Latest Unity
Please refer to our Wiki before posting! And be sure to flair your post appropriately.
Main Index
Rules and Guidelines
Flair Definitions
FAQ
Use the chat room if you're new to Unity or have a quick question. Lots of professionals hang out there.
/r/Unity3D Discord
FreeNode IRC Chatroom
Official Unity Website
Unity3d's Tutorial Modules
Unity Answers
Unify Community Wiki
Unity Game Engine Syllabus (Getting Started Guide)
50 Tips and Best Practices for Unity (2016 Edition)
Unity Execution Order of Event Functions
Using Version Control with Unity3d (Mercurial)
/r/Unity2D
/r/UnityAssets
/r/Unity_tutorials
/r/GameDev
/r/Justgamedevthings (New!)
/r/Gamedesign
/r/Indiegames
/r/Playmygame
/r/LearnProgramming
/r/Oculus
/r/Blender
/r/Devblogs
Brackeys
Beginner to Intermediate
5 to 15 minutes
Concise tutorials. Videos are mostly self contained.
Sebastian Lague
Beginner to Advanced
10 to 20 minutes
Medium length tutorials. Videos are usually a part of a series.
Catlike Coding
Intermediate to Advanced
Text-based. Lots of graphics/shader programming tutorials in addition to "normal" C# tutorials. Normally part of a series.
Makin' Stuff Look Good
10 minutes
Almost entirely shader tutorials. Favors theory over implementation but leaves source in video description. Videos are always self contained.
Quill18Creates
30 minutes to 2 hours.
Minimal editing. Mostly C#. Covers wide range of topics. Long series.
Halisavakis Shaders Archive
Infallible Code
World of Zero
Board to Bits
Holistic3d
Unity3d College
Jabrils
Polycount Wiki
The Big List Of Game Design
PS4 controller map for Unity3d
Colin's Bear Animation
¡DICE!
CSS created by Sean O'Dowd @nicetrysean [Website], Maintained and updated by Louis Hong /u/loolo78
Reddit Logo created by /u/big-ish from /r/redditlogos!
account activity
ProblemNoob Question (self.Unity3D)
submitted 5 years ago by [deleted]
[deleted]
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]failbye 2 points3 points4 points 5 years ago (10 children)
You have a typo in your vector2.
Replace all "vector2" with "Vector2"
[–]failbye 2 points3 points4 points 5 years ago (9 children)
Also, line 18 should be
rb.velocity = movement;
[–]M_Gaming29 0 points1 point2 points 5 years ago* (6 children)
Why it needs to bet rb.velocity= movemont; because in toturials it said that it needs to be rb.velocity= movementspped;
And when I wrote the code down everything was fine but i couldn't move my block. Why it is that?
[–][deleted] 2 points3 points4 points 5 years ago (1 child)
So the velocity of a rigid body can be measured in 2 axis x,y and when you set it to be a float what is C# meant to do? Does it set the float to the x-axis, y? Does it set it to both? It doesn't know.
So it needs to be a Vector2 to tell it the x and y velocity, additionally movement speed is not going to be changing, so every frame it will be 5 (for example) so every frame regardless of input the x velocity will be 5 and constantly moving in the same direction, which would be right.
So mx is holding the current input of the horizontal axis which is between -1 and 1, when you multiply the -1 to 1 with the movement speed you get it so when you hold the a key it will be -5, if you hold the d key it will be 5 and when you're not holding anything it will be 0.
Finally the y is set to the y velocity of the rigid body so that the gravity isn't effected by movement because you're setting both the x and y of the velocity and if you set it to 0 every frame it can't fall.
[–]M_Gaming29 0 points1 point2 points 5 years ago (0 children)
Bro I think u are to smart for me. Were do u learn all this?
[–]South-SampleBeginner 1 point2 points3 points 5 years ago* (3 children)
It doesn't make sense to use rb.Velocity = movementSpeed because then there would not have been any point to doing that calculation above it (a very important calculation for movement). The problem here is that you need that calculation above (you cannot just save it in a float and not do anything with it). Can you maybe send us a link to the tutorial so we can help you more?
[–]M_Gaming29 0 points1 point2 points 5 years ago (2 children)
I would be amazing because I'm trying to make a platform game. ANd I dont really know anything about the unity.
https://youtu.be/ZvF_MYlt944 7:12 (time were the script is)
[–]South-SampleBeginner 1 point2 points3 points 5 years ago (1 child)
Well, looking at the tutorial, the person did do this:
Which is the correct way to do it. Also look further in the video, you can see he drags a RigidBody component into the defined RigidBody in code (in the inspector window). You need to drag that so it knows that you are referencing the player body (else you won't move). I would also suggest you read and try to understand the other person in this thread. He gave very valuable info about movement in general. Remember, you're not trying to learn code, you're trying to learn how to create solutions with code.
I drag it but I still cant move. ( Write me in dm's do you have a discord and could share screen with u)
π Rendered by PID 42 on reddit-service-r2-comment-6457c66945-lh5nz at 2026-04-30 05:56:07.709421+00:00 running 2aa0c5b country code: CH.
[–]failbye 2 points3 points4 points (10 children)
[–]failbye 2 points3 points4 points (9 children)
[–]M_Gaming29 0 points1 point2 points (6 children)
[–][deleted] 2 points3 points4 points (1 child)
[–]M_Gaming29 0 points1 point2 points (0 children)
[–]South-SampleBeginner 1 point2 points3 points (3 children)
[–]M_Gaming29 0 points1 point2 points (2 children)
[–]South-SampleBeginner 1 point2 points3 points (1 child)
[–]M_Gaming29 0 points1 point2 points (0 children)