Skip to content

Disabling Gesture MonoBehaviour causes gesture to become unresponsive #199

Closed

Description

@nicetrysean

As it says on the tin, it would seem when disabling any Gesture MonoBehaviour in TouchScript 7, it will become unresponsive indefinitely.

Activity

  1. oafkad commented on Jan 7, 2016

    @oafkad

    That's by design and was in the update notes.

    to make things stop registering clicks:
    Use: .INTERNAL_SetState(Gesture.GestureState.Failed);

    to make things start registering them again.
    .INTERNAL_SetState(Gesture.GestureState.Possible);

    Hope that helps :).

  2. nicetrysean commented on Jan 7, 2016

    @nicetrysean
    Author

    Oh I must have missed it! Thank you for your patience :~)

  3. oafkad commented on Jan 7, 2016

    @oafkad

    It's cool. I went through the same thing and was confused for a solid half hour or so.

  4. valyard commented on Jan 9, 2016

    @valyard
    Contributor

    This is actually not intended and as far as I can see was added in this commit: 063818d
    Can you guys try this fix: b8c78fa

  5. oafkad commented on Jan 9, 2016

    @oafkad

    Ah my apologies then.

    Changed: When disabling gestures can now change state only to Failed.

    I had seen this and it coincided with the error. Since there was no mention of enabling setting the gesture back to possible in the notes.

  6. oafkad commented on Jan 9, 2016

    @oafkad

    @valyard I tested your fix and it works :). I can disable components and enable them and have the state renew.

    So yeah, now it works just like the older unity did.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions