Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(UIPointer): ensure event input pointers list is managed correctly
Previously, whenever a UIPointer was initialised it would get added to the Event Input pointers list, but it could end up being added multiple times to the same list as no checking was done to see if it already existed within the list and it was also not removed from the list when the UIPointer was disabled. This fix ensures the list is correctly managed and also caches the event system and event system input to prevent them from being re-found each time a pointer is enabled.
- Loading branch information
1 parent
1b782a3
commit 23b4dbd
Showing
2 changed files
with
37 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters