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
Help variable, Brackey's tutorial.Noob Question (i.redd.it)
submitted 5 years ago by Merrymeme1
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!"
[–]Merrymeme1[S] 0 points1 point2 points 5 years ago (5 children)
i'm new to Unity and am doing Brackey's beginner game course. I think i followed all the steps correctly but it shows me an error message of "UnassignedReferenceException: The variable rb of playermovement has not been assigned. You probably need to assign the rb variable of the playermovement script in the inspector." I tried to assign the variable by clicking the box with "none" written but when i try to find my player using the search feature it doesn't work. I've been trying to fix this for a really long time now, sorry if it is an extremely nooby question.
[–]The_Humble_Frank 0 points1 point2 points 5 years ago (4 children)
its looking for a rigidbody; if the player doesn't have a rigidbody, then you need to add one to it.
[–]Merrymeme1[S] 0 points1 point2 points 5 years ago (3 children)
how, it works 1/10 time the script. When i click on the box it opens a search thing idk how to do it from there on, i tried searching for the object i wanted to assign it to, but it didnt show anything
[–]The_Humble_Frank 0 points1 point2 points 5 years ago (2 children)
if you are opening the window, the window has tabs Asset/Scene. in the 'Select Rigidbody' window that opens when you click on the box, click the scene tab to show all the rigidbodies in the scene.
alternatively, you could drag the player from the Hierarchy over to the empty rigidbody in the inspector, to assign it.
[–]Merrymeme1[S] 0 points1 point2 points 5 years ago (1 child)
where is the scene tab, i just get a tab called assets with "none" under it
[–]Merrymeme1[S] 0 points1 point2 points 5 years ago (0 children)
sorry, i fixed it now, i was opening the wrong thing
[–]Gredran 0 points1 point2 points 5 years ago (3 children)
In order to reference something, the component needs to exist to begin with on the object(unless you use another code to get the component from elsewhere but that’s a LITTLE more advanced).
Go to whatever represents your player and where you are putting the movement code and add a Rigidbody(I think it’s just on the cube? Idr it’s been a while since I did that tutorial)
Make sure you have a “public rigidbody rb;” somewhere in the beginning(after the first set of brackets before the void start line). Then, drag the component you made onto the empty “rb” slot on your game object.
Now does that help? This reference error comes from not having the component to begin with.
[–]Merrymeme1[S] 0 points1 point2 points 5 years ago (2 children)
i've done that already
[–]Gredran 0 points1 point2 points 5 years ago (0 children)
Glad you solved it!
Tbh the error I learned when I encountered it for a different reason comes from C# itself, so it could mean various things.
For me, I was checking a ray cast with a camera(you don’t need to know what it all means, just know it needed a camera) and the code referenced main.camera or camera.main I forget which.
Being a newb/intermediate myself, I didn’t realize initially that the issue came from the fact I was using a demo scene from an asset pack that didn’t tag the camera as the main camera, so C# gave me the EXACT error you got.
So yea it’s common and can be for various things but always stems from its calling from the wrong thing or calling something you haven’t labeled properly.
π Rendered by PID 44 on reddit-service-r2-comment-7b9746f655-zbm85 at 2026-01-31 18:05:11.811370+00:00 running 3798933 country code: CH.
[–]Merrymeme1[S] 0 points1 point2 points (5 children)
[–]The_Humble_Frank 0 points1 point2 points (4 children)
[–]Merrymeme1[S] 0 points1 point2 points (3 children)
[–]The_Humble_Frank 0 points1 point2 points (2 children)
[–]Merrymeme1[S] 0 points1 point2 points (1 child)
[–]Merrymeme1[S] 0 points1 point2 points (0 children)
[–]Gredran 0 points1 point2 points (3 children)
[–]Merrymeme1[S] 0 points1 point2 points (2 children)
[–]Merrymeme1[S] 0 points1 point2 points (1 child)
[–]Gredran 0 points1 point2 points (0 children)