P
P
Pragma Games2021-09-20 15:37:10
Unity
Pragma Games, 2021-09-20 15:37:10

Is it possible to handle mouse click in ExecuteInEditMode and get its position?

I want to make a level editor for match3. In the editor, you can select the desired type of tile, after which, by hovering the cursor over the desired place, you press the left mouse button and the tile is created. Trouble arose as this is the most pressed to process. The standard Input.GetMouseButton(0) does not work in update.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaliy Antipin, 2021-09-24
@Stelette

Why do it in editor mode? Isn't it easier to make a scene for the editor and do all this there? Create a new scene and do all the logic of the editor there. After you've finished creating a level, save it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question