When clicking on a mobile platform, some gameobject will trigger OnEnter event without OnExit event
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- csharp
- Domain
- game-dev, mobile-dev
Research direction
Start by locating TouchInputModule and its release path, then inspect how HandlePointerExitAndEnter updates the hovered list and invokes OnEnter and OnExit. Verify whether every object receiving OnEnter gets a corresponding OnExit when the pointer is released, and determine whether the release behavior matches the intended contract.
Written by the indexing model from the issue text.
Description
The TouchInputModule executes OnEnter by calling the HandlePointerExitAndEnter function, which calls OnEnter for newEnterTarget and all its ancestor nodes, and add all gameobject that have executed OnEnter to the hovered list.
However, when pointer release it executes OnExit on pointerEnter gameobject only.
I think the correct approach is invoke HandlePointerExitAndEnter(pointerEvent, null) when pointer release. Is this a bug or an expectation?
- Dominant language
- C#
- Stars
- 1.6k
- Forks
- 323
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Unity-Technologies/uGUI
-
> - [ ] Open
Difficulty 5/5 Over a week Newbie friendliness 1/100
Unity-Technologies/uGUI#22 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
Unity-Technologies/uGUI#20 ·
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
Unity-Technologies/uGUI#17 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
Unity-Technologies/uGUI#15 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
Unity-Technologies/uGUI#13 ·
All issues in Unity-Technologies/uGUI
Similar issues
-
type/automation type/tech-debt
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
t/bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
ci-failure-cause test-failure
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
area:auth FE mvp P3
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
klasolsson81/jobbliggaren#1788 ·