« All Events
2:30 PM – Unity Game Development – Bill
June 15 @ 2:30 pm - 3:30 pm
Your HW:
- Make it so that the circle that spawns follows your mouse around
- Try to research and do this on your own
- If you are stuck you can use the following links to guide you
- https://docs.unity3d.com/ScriptReference/Input-mousePosition.html
- Hint, try out your code with this function only and you will realize this is not the only step
- https://docs.unity3d.com/ScriptReference/Camera.ScreenToWorldPoint.html
- Another hint, you will need to somehow get a reference to the main camera object