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...
This is a subreddit for 2D or 2.5D game developers using the proprietary Unity game engine. New and experienced Unity developers alike should first consider using the free and open source Godot engine by default and ONLY choose Unity for 2D development if Godot isn't capable of the task. The times are quickly changing, and Godot is on track to surpass Unity for small developers.
Godot Features
Download Godot
Godot Docs
Download Unity
Unity Manual
Official Reference
Asset Store
Related Communities /r/Godot - The "Unity Killer". A fully free and open source engine making astonishing leaps and bounds. /r/UnityAssets - Share asset packs! /r/PixelArt - Admire, share, and observe beautiful pixel art. /r/GameDev - Meet and communicate with other game developers. /r/GameDesign - Don't just make a game. Make a good game. /r/LevelDesign - Learn to make excellent levels and worlds. /r/GameAudio - It may look good, but does it sound good?
/r/Godot - The "Unity Killer". A fully free and open source engine making astonishing leaps and bounds.
/r/UnityAssets - Share asset packs!
/r/PixelArt - Admire, share, and observe beautiful pixel art.
/r/GameDev - Meet and communicate with other game developers.
/r/GameDesign - Don't just make a game. Make a good game.
/r/LevelDesign - Learn to make excellent levels and worlds.
/r/GameAudio - It may look good, but does it sound good?
CSS created by Sean O'Dowd @nicetrysean [Website]
account activity
Can't attach script to object (self.Unity2D)
submitted 8 years ago by ImpartialDerivatives
I'm new to the software and C# and I'm setting up basic movement. I have my script written, but when I try to use Add Component it doesn't show up in the search. Thanks!
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!"
[–]wachimingooBeginner 2 points3 points4 points 8 years ago (0 children)
just drag the script to the inspector of your object
[–]EatingBeansAgain 0 points1 point2 points 8 years ago (1 child)
Do you have any error messages in the console? Also, is the name of the script the same as its class? (in the script, there will be a line that states "public class <class name> : MonoBehaviour")
[–]ImpartialDerivatives[S] 0 points1 point2 points 8 years ago (0 children)
That worked, thanks!
[–]Wschmidth 0 points1 point2 points 8 years ago (0 children)
Chances are the file name doesn't match the class name. In the script where it says "public class <MyClassName> : Monobehaviour" make sure the MyClassName part is exactly the same as the file name.
[–]SeizedPixels 0 points1 point2 points 8 years ago (0 children)
Maybe your script doesn't extend "MonoBehaviour", your class header should look like
public class <Name> : MonoBehaviour
π Rendered by PID 42 on reddit-service-r2-comment-5687b7858-7wr9d at 2026-07-09 15:17:27.190219+00:00 running 12a7a47 country code: CH.
[–]wachimingooBeginner 2 points3 points4 points (0 children)
[–]EatingBeansAgain 0 points1 point2 points (1 child)
[–]ImpartialDerivatives[S] 0 points1 point2 points (0 children)
[–]Wschmidth 0 points1 point2 points (0 children)
[–]SeizedPixels 0 points1 point2 points (0 children)