How to make a GameObject look at the Mouse in Unity

Опубликовано: 28 Август 2023
на канале: Game Dev By Kaupenjoe
1,005
29

In this Unity Tutorial a GameObject will LookAt the Mouse in Unity. Specifically using the LookAt method for exactly that purpose. The important thing to get a GameObject to look at the mouse in Unity is going to be the Mouse Position which needs to be converted via the Camera.

== LINKS ==
▶️ GitHub: https://github.com/Tutorials-By-Kaupe...
▶️ Unity Package: https://url.kaupenjoe.net/gdbkj21/uni...
▶️ Basic Input Gist: https://url.kaupenjoe.net/gdbkj21/gist

== CREDITS ==
Galaxy BG by https://foozlecc.itch.io/void-environ... by Foozlecc under CC0
Ship by https://pixelwolfnet.itch.io/space-sh... by Pixelwolf under CC0

Cursor in the Thumbnail under CC BY-SA 3.0 from https://commons.wikimedia.org/wiki/Fi...

== HASHTAGS ==
#kaupenjoe #unitytutorial #unity