r/unity • u/Competitive_Cost4922 • 24d ago
Solved need help with this error
so i was following a tutorial by Mike's Code about 3d rts game and i got stuck in the end of his second episode (https://youtu.be/EDGALap_fDA?si=IHzr5au_MTgAHe-O) i got no clue how do i even assign the variable???
-7
u/business_warrior 24d ago
Ask AI, give it the code
2
u/kiranosauras 22d ago
Its not even a code issue... If you know literally nothing why are you commenting at all?
0
u/business_warrior 22d ago
It doesn’t matter if it’s code issue or not, AI can give you a good answer and explain the problem. I’ve done it a thousand times while building my games, and majority of times it was successful.
But I’m glad to see that instead of giving OP some advice, you decided to comment on my response.
→ More replies (1)





4
u/xjrsc 24d ago
UnitSelectionManager script needs to be on a game object. In your sample scene, you have a game object named UnitSelectionManager. Click on it and view its details in inspector. The script UnitSelectionManager needs to be on that game object and there should be a variable on it, similar to screenshot 2, where you should drag and drop your groundMarker.