question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Permanent loss of input control and null refs after interacting with a dialogue target

See original GitHub issue

Short description In NewInteractionExample and InteractionExample, interacting (E on keyboard) with the Bard Hare disables controls and throws NullReferenceExceptions in the InputReader when triggering the Dialogues/MoveSelection action.

Expected behaviour I imagine movement controls are supposed to be disabled. However, no dialogue is presented, so there is no avenue for returning to an enabled movement. I’d expect there to be some dialogue and movement control be returned to the player once the dialogue has finished.

To Reproduce Steps to reproduce the behavior:

  1. Play NewInteractionExample or InteractionExample
  2. Walk up the Bard Hare.
  3. Trigger the interact action (E on keyboard)
  4. Try to walk away or move camera.

Notes

  • NullReferenceException while executing 'performed' callbacks of 'Dialogues/MoveSelection[/Keyboard/w,/Keyboard/s,/Keyboard/a,/Keyboard/d,/Keyboard/upArrow,/Keyboard/downArrow,/Keyboard/leftArrow,/Keyboard/rightArrow]'
  • NullReferenceException: Object reference not set to an instance of an object InputReader.OnMoveSelection (UnityEngine.InputSystem.InputAction+CallbackContext context) (at Assets/Scripts/Input/InputReader.cs:127)

image

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
amel-unitycommented, Apr 21, 2021

Hey everyone! This issue has been fixed so I will close it just to avoid that anyone spends time looking into fixing it. Thank you all 😃

1reaction
rainaldisatriacommented, Dec 26, 2020

Loss of input control should be fixed after this PR is merged: https://github.com/UnityTechnologies/open-project-1/pull/195 It happen when trying to call empty UnityAction

Read more comments on GitHub >

github_iconTop Results From Across the Web

When to use target="_blank" | CSS-Tricks
Start with the free Agency Accelerator today. Anchor links 1 may have a target attribute which controls what happens when that link is...
Read more >
Successful Strategies for Recruiting, Training, and Utilizing ...
Mobilizing community resources and expanding capacity through volunteers also enhance an organization's general profile, which can attract more volunteers, ...
Read more >
InputMethodManager
Quickly bring your app to life with less code, using a modern declarative approach to UI, and the simplicity of Kotlin. ... Start...
Read more >
The autofocus attribute - HTML Standard - WhatWG
When interacting with an interface using a keyboard, key input is channeled from the system, through the hierarchy of interactive widgets, to an ......
Read more >
Analysis of Student-Teacher Interactive Writing in the Learning ...
Data for the study were drawn from the students' dialogue journals and classroom observations and from interviews with the teacher and each.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found