- Home /
How can I do 2 cursors in the same screen?2 player game
Hello people, I am wondering how can I get 2 cursors, each one controlled by a different player. Cursor01(player1) controlled by mouse and Cursor02(player2) controlled by keyboard/gamepad.
Answer by syclamoth · Sep 23, 2013 at 12:10 AM
First off, use 'Screen.lockCursor = true' to disable the default cursor.
Then, simply make 2 custom cursors (this can be done with a GameObject or with GUI stuff, however you like) and have one take mouse delta for its movement, and one take keyboard/gamepad input (set up 2 sets of axes in the input manager to double up input devices).
Thank you Syclamoth, that sounds like the way to go I will give it a try this afternoon.
Your answer
Follow this Question
Related Questions
XBox Controller Joystick-Driven Mouse Cursor in Unity 0 Answers
Multiplayer First Persson Controller help 0 Answers
Reticle orbits around player depending on right stick direction? 0 Answers
Handling Controller disconnection? (reassignment, clunkyness, etc.) 1 Answer
Unity networking tutorial? 6 Answers