Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Our custom Undo not working when tool lose focus #5

Closed
piXelicidio opened this issue Mar 31, 2023 · 1 comment
Closed

Our custom Undo not working when tool lose focus #5

piXelicidio opened this issue Mar 31, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@piXelicidio
Copy link
Owner

The tool undo system is custom made and replace Unity undo intervening Ctrl-Z,Y shortcuts.
When the Scene View and the tool window lose the focus in some circumstances the Unity Undo is triggered and mess everything.

how to reproduce: Clicking other game objects in the Hierarchy panel, Ctrl+Z

@piXelicidio piXelicidio added the bug Something isn't working label Mar 31, 2023
piXelicidio added a commit that referenced this issue Jul 14, 2023
@piXelicidio
Copy link
Owner Author

Was getting input from OnSceneGUI() only. When the editor window is focused needs separated processing of events, from OnGUI().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant