I
I
InfinityCoder2021-07-08 10:23:57
Unity
InfinityCoder, 2021-07-08 10:23:57

How to make mouse control in Unity3D?

I want to make the camera control with the mouse, while the cursor should not move (as in Minecraft). How can this be implemented? (The cursor should not constantly move to the center with an update to the frame, but in principle is hidden and stand still.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
NoNameDeveloper, 2021-07-08
@NoNameDeveloper

When you enter the gameplay, turn off the cursor:
https://docs.unity3d.com/ScriptReference/Cursor-vi...
When you open the menu, turn it back on.
And the sight in the center should do it yourself.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question