RTS like things(Need help)

Hello!

I’m noob at unity and i want to create a project that will include strategy games mechanics. Does anyone know how to do:

  • Left click on object highlights it
  • At the same time little window with information that connected to the object appears on the screen

Thanks to everyone in advance!

P.S. sorry for my Eng skills

If you’re just starting out, I highly recommend going through this course here.

5 Likes

Murgilod is right, sounds like you need to learn the basics. This is like saying “I want to get in a car and when I sit down, I want it to move down the road and then turn left …” you need to learn to drive!

Also, learn to read the manual:

https://docs.unity3d.com/ScriptReference/Input-mousePosition.html

https://docs.unity3d.com/ScriptReference/Camera.ScreenToWorldPoint.html

https://docs.unity3d.com/ScriptReference/Physics.Raycast.html

https://docs.unity3d.com/ScriptReference/GameObject.SetActive.html

3 Likes

Thank you for your advice, i’ll try it!

Yeah, sounds like i want too much without learning, thank you for your reply, i’ll check these manuals

1 Like

And when you’re done with the basics:

2 Likes

First one looks like what i need, huge amount of information, thank you very much!

Just be aware that first tutorial is five years old now. In the game development industry that’s practically a lifetime and there will most likely be major differences you’ll have to deal with. Just throwing this warning out there in case you are new with Unity. You might have to change some of the steps to make it work with newer releases.

1 Like

Thank you for your warning!
I hope this will not cause big issues. If you have any newer guides\tutorials\or any advice to do things, that i have described in the first message, i’ll be very grateful.